1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/examples
Ankit Gupta a7ff577383 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
2013-07-06 23:05:34 +01:00
..
.gitignore
performance.rb Some performance benchmarking for take vs limit 2013-07-06 23:05:34 +01:00
simple.rb activerecord/examples/simple.rb use master branch activesupport gem 2013-06-27 23:17:34 +08:00