diff options
author | Koichi Sasada <[email protected]> | 2020-12-01 01:27:04 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2020-12-01 09:39:09 +0900 |
commit | e79f1941b29738d95b42f8cb5bdb159e7138cf49 (patch) | |
tree | fb15dcdd48397d026246b75f9f1ebabce97ed604 /tool/lib/test/unit/parallel.rb | |
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 'tool/lib/test/unit/parallel.rb')
-rw-r--r-- | tool/lib/test/unit/parallel.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/lib/test/unit/parallel.rb b/tool/lib/test/unit/parallel.rb index afb0d0167a..ccaf1a913a 100644 --- a/tool/lib/test/unit/parallel.rb +++ b/tool/lib/test/unit/parallel.rb @@ -198,6 +198,9 @@ if $0 == __FILE__ def on_parallel_worker? true end + def self.on_parallel_worker? + true + end end end end |