From 9194f489c94a4498bcfa1e858a31ecdef833b4c9 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Thu, 19 Oct 2023 13:48:27 -0400 Subject: [PATCH] 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. --- test/ruby/test_yjit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_yjit.rb b/test/ruby/test_yjit.rb index 1fe9d68b30..17c779af39 100644 --- a/test/ruby/test_yjit.rb +++ b/test/ruby/test_yjit.rb @@ -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)