Rafael Mendonça França
f679933daa
Change the empty block style to have space inside of the block
2018-09-25 13:19:35 -04:00
bogdanvlviv
0f98954a83
Clean up and consolidate .gitignores
...
* Global ignores at toplevel .gitignore
* Component-specific ignores in each toplevel directory
* Remove `actionview/test/tmp/.keep` for JRuby
```
rm actionview/test/tmp/ -fr
cd actionview/
bundle exec jruby -Itest test/template/digestor_test.rb
```
Related to #11743 , #30392 .
Closes #29978 .
2018-02-17 14:26:19 -08:00
Kir Shatrov
831be98f9a
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
Matthew Draper
87b3e226d6
Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
...
This reverts commit 3420a14590
, reversing
changes made to afb66a5a59
.
2017-07-02 02:15:17 +09:30
Kir Shatrov
cfade1ec7e
Enforce frozen string in Rubocop
2017-07-01 02:11:03 +03:00
Rafael Mendonça França
fe1f4b2ad5
Add more rubocop rules about whitespaces
2016-10-29 01:17:49 -02:00
Xavier Noria
b326e82dc0
applies remaining conventions across the project
2016-08-06 20:20:22 +02:00
Xavier Noria
80e66cc4d9
normalizes indentation and whitespace across the project
2016-08-06 20:16:27 +02:00
Xavier Noria
e6ab70c439
applies new string literal convention to the rest of the project
...
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 19:28:46 +02:00
Arthur Neves
2abcdfd978
Remove load_paths file
2016-02-27 13:03:57 -05:00
Erik Michaels-Ober
d1374f99bf
Pass symbol as an argument instead of a block
2014-11-29 11:53:24 +01:00
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