diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-12-01 01:27:04 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-12-01 09:39:09 +0900 |
commit | e79f1941b29738d95b42f8cb5bdb159e7138cf49 (patch) | |
tree | fb15dcdd48397d026246b75f9f1ebabce97ed604 /test/ruby | |
parent | e25165b3fc72166a85ed10e49609153d72333388 (diff) |
tune parallel test
This patch contains the fowllowing hacks:
(1) Add "--timetable-data=FILE" option for test-all
This option enables to dump timeline event
contains worker, suite, and start/end time.
(2) remove TestJIT in test_jit_debug.rb on parallel test.
it is duplicated test.
(3) move test_jit.rb and test_jit_debug.rb at first
because these two tests are bottleneck of parallel tests.
On my environment, `make test-all TESTS=-j12` reduced the total time
190 seconds -> 140 seconds.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3826
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_jit_debug.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_jit_debug.rb b/test/ruby/test_jit_debug.rb index 179512fec6..50e52b4c2e 100644 --- a/test/ruby/test_jit_debug.rb +++ b/test/ruby/test_jit_debug.rb @@ -7,6 +7,8 @@ return if ENV['RUBY_DEBUG']&.include?('ci') # ci.rvm.jp return if /mswin/ =~ RUBY_PLATFORM class TestJITDebug < TestJIT + @@test_suites.delete TestJIT if self.respond_to? :on_parallel_worker? + def setup super # let `#eval_with_jit` use --jit-debug |