Jon Leighton
c6bbc10fae
Increase benchmark time to 20 seconds.
...
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.
2012-08-17 15:09:01 +01:00
Jon Leighton
1411fc1986
Use benchmark/ips to measure AR performance
...
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.
2012-08-17 11:41:50 +01:00
José Valim
1e8b751813
Make with_scope public so we stop using send 💣
2011-12-15 20:47:26 +01:00
José Valim
06ac7d3ee0
Add performance scripts from wycats/rails-simple-benches to actionpack.
2011-12-08 16:39:06 +01:00
Sergey Parizhskiy
69d56cb933
splited a long line to shorter ones
2011-11-29 11:50:02 +02:00
Emilio Tagua
ca75091fc7
Remove identity map from benchmark script.
2011-02-15 12:06:44 -03:00
Emilio Tagua
8ee0b44148
Merge remote branch 'rails/master' into identity_map
...
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
2011-02-15 12:01:04 -03:00
Aaron Patterson
ac86923fca
no more faker, rbench, or addressable
2011-02-07 19:53:22 -08:00
Emilio Tagua
2ba06b48de
Clean IdentityMap before running each benchmark.
2010-11-19 19:09:01 -03:00
Emilio Tagua
54f924c313
Enable IM in performance script unless IM=disabled is set when running it.
2010-11-19 19:09:00 -03:00
Emilio Tagua
61cf11247b
Use detect instead select to avoid "sh: [mysqldump]: command not found".
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-29 20:29:51 +02:00
Emilio Tagua
61bacc4ada
Add more examples in performance script.
...
[#5610 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-09-10 13:15:13 -07:00
Jeremy Kemper
68a4b1eac9
Ruby 1.9 compat: convert Pathname to string
2010-09-10 12:16:56 -07:00
Jeremy Kemper
be9831ceb1
Switch back to mysql for easier comparison
2010-09-10 12:16:56 -07:00
Jeremy Kemper
cc81b04ae5
AR perf test: switch to mysql2, bundle faker and rbench
2010-09-09 14:34:47 -07:00
Pratik Naik
130bf3c9ed
Fix data loading from the performance script
2010-07-16 08:28:49 +01:00
Emilio Tagua
df595b577e
Use the new query API in AR performance script.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-22 16:44:10 +02:00
rohit
95a8f252c0
remove executable permission from files that don't need it. [ #4802 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-20 00:50:48 +02:00
José Valim
b308a6030e
Use load_paths on AR benchmarks so it uses the bundler setup instead of system gems.
2010-06-12 10:07:35 +02:00
Jeremy Kemper
c3a0a36fc3
Fix typo
2009-08-25 13:41:48 -07:00
Emilio Tagua
09fde6440a
timestamps gives a created_at field not created_on.
...
[#3093 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-08-24 16:17:08 -07:00
Jeremy Kemper
8bc3a14727
Benchmark script via miloops' arel fork via DataMapper's AR comparison script
2009-08-20 21:09:59 -07:00