Commit Graph

163 Commits

Author SHA1 Message Date
Gonçalo Silva
7fcf0ca69e removed redundant metric support check (and print when it isn't) 2011-05-10 03:40:44 +01:00
Gonçalo Silva
aaa85cde60 remove forgotten puts 2011-05-10 02:52:10 +01:00
Gonçalo Silva
0304d8076a ruby-prof's awesome call stack printer is now used by default 2011-05-10 02:49:32 +01:00
Gonçalo Silva
810fb2b527 benchmarker and profiler now use the new performance testing tools (support for Rubinius and JRuby and high configurability) 2011-05-10 01:38:21 +01:00
Gonçalo Silva
0d1f7584ba contemplate unsupported metrics 2011-05-09 23:29:00 +01:00
Gonçalo Silva
181c8422d7 explicitly return from run() under minitest (metrics were printed with the previous solution) 2011-05-08 04:20:14 +01:00
Gonçalo Silva
aec7456f81 Merge branch 'master' of https://github.com/rails/rails into performance_test
Conflicts:
	activesupport/lib/active_support/testing/performance.rb
2011-05-08 03:54:55 +01:00
Jan Xie
25288c137c minitest/ruby19 compatible performance test 2011-05-05 16:11:49 +08:00
Aaron Patterson
b8ccd05524 convert strings to lambdas so we can use a consistent interface to the objects in the collection 2011-05-01 12:16:12 -07:00
Aaron Patterson
23eb81a3d1 assert_difference can take a callable piece of code rather than just evaling a string 2011-05-01 11:55:13 -07:00
Gonçalo Silva
8d558cb1b0 don't use internal profiler methods on Rubinius and JRuby since we're only measuring wall clock for now (and the APIs will/can change, respectively) 2011-04-03 03:16:35 +01:00
Gonçalo Silva
65022acda0 removed unused class declaration 2011-04-03 02:09:53 +01:00
Gonçalo Silva
5b2b513742 Merge branch 'master' of https://github.com/rails/rails into performance_test 2011-04-03 02:02:35 +01:00
Gonçalo Silva
677ce63d92 profiling enabled under JRuby. Added documentation for workaround described in JRUBY-5650. 2011-04-03 02:02:03 +01:00
David Heinemeier Hansson
0eb6e5e270 Moved Turn activation/dependency to railties 2011-03-31 16:20:59 -07:00
David Heinemeier Hansson
6eff04499e Add using Turn with natural language test case names if the library is available (which it will be in Rails 3.1) [DHH] 2011-03-31 12:25:04 -07:00
David Heinemeier Hansson
2867093365 Delegate pending to skip if Minitest is available 2011-03-30 21:16:29 -07:00
Gonçalo Silva
09cdd1cac1 check if there is support for the specified metric when profiling 2011-03-30 03:23:16 +01:00
Gonçalo Silva
391ccdaf35 fixed a bug where rubinius was creating the profiling files as directories 2011-03-30 00:00:26 +01:00
Gonçalo Silva
a35ba6cf5a don't allow decimal places on the amount of objects and gc runs 2011-03-29 23:43:26 +01:00
Gonçalo Silva
726b7ede54 improved detection and feedback of supported/unsupported metrics 2011-03-28 04:19:39 +01:00
Gonçalo Silva
09bd0eeefc fixed a couple of hidden bugs 2011-03-28 04:03:47 +01:00
Gonçalo Silva
c401ad9853 improved options handling in performance tests 2011-03-28 03:11:42 +01:00
Gonçalo Silva
983bd01f42 we need test-unit on mri 1.9 2011-03-28 03:08:08 +01:00
Gonçalo Silva
d6d059f280 added profiling and benchmarking capabilities to jruby (profiling is crippled because of a jruby bug) 2011-03-28 02:11:05 +01:00
Gonçalo Silva
e6cb3962bb benchmarking metrics are also implementation-specific 2011-03-28 01:32:56 +01:00
Gonçalo Silva
e17f608797 warn the user about unsupported benchmarking metrics he might have asked for 2011-03-28 01:32:32 +01:00
Gonçalo Silva
ef988e12d8 removed duplication in rubinius' benchmark code 2011-03-28 00:33:36 +01:00
Gonçalo Silva
15bff5a86e fix a bug where the GC wasn't being triggered at the start of the MRI benchmarks 2011-03-28 00:33:07 +01:00
Gonçalo Silva
93a583eb18 :min_percent only makes sense in a RubyProf context 2011-03-28 00:32:21 +01:00
Gonçalo Silva
84fe2b8b42 added basic structure for jruby 2011-03-26 19:34:59 +00:00
Gonçalo Silva
3872cc4a73 added support for profiling under rubinius 2011-03-26 15:51:44 +00:00
Gonçalo Silva
278344b3fa fixed time and size units (should be seconds / bytes), fixed typo when counting memory allocations under rubinius 2011-03-25 19:10:47 +00:00
Gonçalo Silva
417b2baf0f added gc info (runs, time) to rubinius' benchmarks 2011-03-25 18:01:39 +00:00
Gonçalo Silva
c58e063da0 added memory size and allocations to rubinius' benchmarks 2011-03-25 18:00:29 +00:00
Gonçalo Silva
cf29d90ef1 added time (wall, process, cpu) to rubinius' benchmarks 2011-03-25 17:59:22 +00:00
Gonçalo Silva
9e9090f887 added missing require 2011-03-25 17:27:26 +00:00
Gonçalo Silva
4fe86a3ea2 removed leftovers from the copy-paste from mri 2011-03-25 17:23:39 +00:00
Gonçalo Silva
b0beba2621 rubinius returns "rbx" for RUBY_ENGINE, not "rubinius" 2011-03-25 17:21:32 +00:00
Gonçalo Silva
995d543b64 added basic structure for Rubinius 2011-03-25 17:18:06 +00:00
Gonçalo Silva
2fa426c944 divide the ruby interpreter into mri and yarv for improved modularity 2011-03-25 03:26:43 +00:00
Gonçalo Silva
3ec79e4288 renamed "mri" to "ruby", for consistency with RUBY_ENGINE 2011-03-25 03:21:01 +00:00
Gonçalo Silva
18a81db6fc check whether the user is using a supported ruby interpreter for benchmarking 2011-03-25 02:46:57 +00:00
Gonçalo Silva
1151608921 using number_helper to pretty print some results 2011-03-25 02:39:43 +00:00
Gonçalo Silva
e57d264f37 extracted more generic methods, added a note for methods that need to be overridden by each implementation 2011-03-25 02:28:38 +00:00
Gonçalo Silva
c50df6351c initial separation of RubyProf-specific code 2011-03-25 01:50:07 +00:00
Gonçalo Silva
6e99bb6aca ruby-prof only makes sense in an MRI context 2011-03-25 00:02:25 +00:00
Gonçalo Silva
a6e22229b9 move "check for ruby-prof" from AD/testing/performance_test to AS/testing/performance, where it is actually required 2011-03-24 23:57:57 +00:00
Gonçalo Silva
23be2c6134 check if RubyProf's WALL_TIME and PROCESS_TIME are available before using them (similarly to other constants) 2011-03-24 23:38:17 +00:00
Akira Matsuda
071ddb8281 more "SSL everywhere" for GitHub URLs
see: https://github.com/blog/738-sidejack-prevention-phase-2-ssl-everywhere
2011-03-07 06:18:32 +09:00