YJIT: Make test_yjit.rb faster with --yjit-stats=quiet

The for-human stats summaries are not relevant for the children
`test_yjit.rb` spawns. Avoid compiling and running the printing code.
On a -O0 dev build this halves the time for `test_yjit.rb` on my machine.
This commit is contained in:
Alan Wu 2023-10-19 13:48:27 -04:00
parent 9047fe5ea4
commit 9194f489c9

View File

@ -1510,7 +1510,7 @@ class TestYJIT < Test::Unit::TestCase
args = [
"--disable-gems",
"--yjit-call-threshold=#{call_threshold}",
"--yjit-stats"
"--yjit-stats=quiet"
]
args << "--yjit-exec-mem-size=#{mem_size}" if mem_size
args << "-e" << script_shell_encode(script)