aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/examples/performance.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-2/+2
|
* applies remaining conventions across the projectXavier Noria2016-08-061-2/+2
|
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-2/+2
|
* applies new string literal convention to the rest of the projectXavier Noria2016-08-061-24/+24
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Remove load_paths fileArthur Neves2016-02-271-1/+0
|
* Pass symbol as an argument instead of a blockErik Michaels-Ober2014-11-291-2/+2
|
* Some performance benchmarking for take vs limitAnkit Gupta2013-07-061-1/+13
| | | | | | | | | 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
* SQL Keywords to be in UPPERCASEankit88982013-07-041-1/+1
|
* fix activerecord/examples/performance.rb#L101 syntax errortumayun2013-06-271-1/+1
|
* replace all older rocket sign to new ":" from examples of active record and ↵Rajarshi Das2013-06-241-16/+16
| | | | active models
* Change docs to use update instead of update_attributesAmparo Luna + Guillermo Iguaran2013-01-031-1/+1
|
* Increase benchmark time to 20 seconds.Jon Leighton2012-08-171-18/+18
| | | | | | | | | I think that 5 seconds was a bit low for our purposes. Also enable it to be configured via env vars. We also need to scale the number of records up/down depending on how long we're running the benchmark for.
* Use benchmark/ips to measure AR performanceJon Leighton2012-08-171-39/+34
| | | | | | This means we can more easily compare numbers, and we don't have to specify a single N for all reports, which previously meant that some tests were running many more/fewer iterations than necessary.
* Make with_scope public so we stop using send :bomb:José Valim2011-12-151-0/+12
|
* Add performance scripts from wycats/rails-simple-benches to actionpack.José Valim2011-12-081-1/+1
|
* splited a long line to shorter onesSergey Parizhskiy2011-11-291-1/+8
|
* Remove identity map from benchmark script.Emilio Tagua2011-02-151-7/+0
|
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-151-124/+90
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/examples/performance.rb activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/nested_attributes.rb activerecord/test/cases/relations_test.rb
| * no more faker, rbench, or addressableAaron Patterson2011-02-071-109/+88
| |
* | Clean IdentityMap before running each benchmark.Emilio Tagua2010-11-191-0/+18
| |
* | Enable IM in performance script unless IM=disabled is set when running it.Emilio Tagua2010-11-191-0/+2
|/
* Use detect instead select to avoid "sh: [mysqldump]: command not found".Emilio Tagua2010-09-291-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add more examples in performance script.Emilio Tagua2010-09-101-0/+17
| | | | | | [#5610 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ruby 1.9 compat: convert Pathname to stringJeremy Kemper2010-09-101-1/+1
|
* Switch back to mysql for easier comparisonJeremy Kemper2010-09-101-1/+1
|
* AR perf test: switch to mysql2, bundle faker and rbenchJeremy Kemper2010-09-091-1/+1
|
* Fix data loading from the performance scriptPratik Naik2010-07-161-1/+1
|
* Use the new query API in AR performance script.Emilio Tagua2010-06-221-3/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* remove executable permission from files that don't need it. [#4802 ↵rohit2010-06-201-0/+0
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Use load_paths on AR benchmarks so it uses the bundler setup instead of ↵José Valim2010-06-121-5/+5
| | | | system gems.
* Fix typoJeremy Kemper2009-08-251-1/+1
|
* timestamps gives a created_at field not created_on.Emilio Tagua2009-08-241-2/+2
| | | | | | [#3093 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Benchmark script via miloops' arel fork via DataMapper's AR comparison scriptJeremy Kemper2009-08-201-0/+162