1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

33 commits

Author SHA1 Message Date
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
ankit8898
46a0eacef8 SQL Keywords to be in UPPERCASE 2013-07-04 18:16:45 +01:00
tumayun
e82f206a94 activerecord/examples/simple.rb use master branch activesupport gem 2013-06-27 23:17:34 +08:00
tumayun
f6f373db9b fix activerecord/examples/performance.rb#L101 syntax error 2013-06-27 01:49:54 +08:00
Rajarshi Das
cbd4a2e317 replace all older rocket sign to new ":" from examples of active record and active models 2013-06-24 11:19:51 +05:30
Xavier Noria
8db99d3be8 removes activerecord/examples/associations.png
This seems to be a legacy file, I cannot find any place where it is used.
2013-03-29 12:01:30 +01:00
Amparo Luna + Guillermo Iguaran
1bb020063c Change docs to use update instead of update_attributes 2013-01-03 12:03:34 -05:00
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
Jeremy Kemper
4f291fa528 Simple examples for require profiling 2009-05-13 12:00:49 -07:00
David Heinemeier Hansson
250f871b90 Removed outdated benchmarks and examples
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-09 23:30:09 +00:00
David Heinemeier Hansson
186d7fb334 Removed unnecessary table_name overwrite #695
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@764 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 14:28:53 +00:00
David Heinemeier Hansson
db045dbbf6 Initial
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-24 01:04:44 +00:00