1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
Koichi Sasada 2020-12-01 01:27:04 +09:00
parent e25165b3fc
commit e79f1941b2
Notes: git 2020-12-01 09:39:33 +09:00
4 changed files with 42 additions and 1 deletions

View file

@ -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