diff options
author | Ankit Gupta <ankit.gupta8898@gmail.com> | 2013-07-05 16:20:54 +0100 |
---|---|---|
committer | Ankit Gupta-FIR <ankit_gupta-fir@external.mckinsey.com> | 2013-07-06 23:05:34 +0100 |
commit | a7ff577383dcf1b36d075b70713f614c598b2430 (patch) | |
tree | c62230a521272941a77c863324170c4036579ccc /guides/source/generators.md | |
parent | 56e3419fef2aff400867787b9fff06aededed9b2 (diff) | |
download | rails-a7ff577383dcf1b36d075b70713f614c598b2430.tar.gz rails-a7ff577383dcf1b36d075b70713f614c598b2430.tar.bz2 rails-a7ff577383dcf1b36d075b70713f614c598b2430.zip |
Some performance benchmarking for take vs limit
Also added a dummy progress bar during insert of records so it shows something is happening.
Performance report
Model.take 6198.9 (±13.4%) i/s - 121743 in 20.042671s
Model.take! 6173.6 (±13.6%) i/s - 121242 in 20.057006s
Model.all limit(100) 107.8 (±15.8%) i/s - 2106 in 20.022316s
Model.all take(100) 105.2 (±15.2%) i/s - 2061 in 20.062509s
Diffstat (limited to 'guides/source/generators.md')
0 files changed, 0 insertions, 0 deletions