Closed rwstauner closed 6 months ago
I'm not able to reproduce this bug on macOS with a dev build of the commit you pointed to:
./run_benchmarks.rb ruby-lsp --once
Running benchmark "ruby-lsp" (1/1)
/Users/maximecb/.rubies/ruby-yjit/bin/ruby -I harness /Users/maximecb/src/github.com/Shopify/yjit-bench/benchmarks/ruby-lsp/benchmark.rb
ruby 3.4.0dev (2024-01-18T15:35:46Z master 00814fd672) [arm64-darwin23]
Command: bundle check 2> /dev/null || bundle install
The Gemfile's dependencies are satisfied
itr #1: 1118ms
RSS: 111.0MiB
MAXRSS: 113888.0MiB
Running benchmark "ruby-lsp" (1/1)
/Users/maximecb/.rubies/ruby-yjit/bin/ruby --yjit -I harness /Users/maximecb/src/github.com/Shopify/yjit-bench/benchmarks/ruby-lsp/benchmark.rb
ruby 3.4.0dev (2024-01-18T15:35:46Z master 00814fd672) +YJIT dev [arm64-darwin23]
Command: bundle check 2> /dev/null || bundle install
The Gemfile's dependencies are satisfied
itr #1: 6070ms
RSS: 178.4MiB
MAXRSS: 182912.0MiB
Total time spent benchmarking: 8s
interp: ruby 3.4.0dev (2024-01-18T15:35:46Z master 00814fd672) [arm64-darwin23]
yjit: ruby 3.4.0dev (2024-01-18T15:35:46Z master 00814fd672) +YJIT dev [arm64-darwin23]
-------- ----------- ---------- --------- ---------- ------------ -----------
bench interp (ms) stddev (%) yjit (ms) stddev (%) yjit 1st itr interp/yjit
ruby-lsp 1118.8 0.0 6070.4 0.0 0.18 0.18
-------- ----------- ---------- --------- ---------- ------------ -----------
Legend:
- yjit 1st itr: ratio of interp/yjit time for the first benchmarking iteration.
- interp/yjit: ratio of interp/yjit time. Higher is better for yjit. Above 1 represents a speedup.
Output:
./data/output_132.csv
The changes in https://github.com/Shopify/yjit-bench/pull/255 pass for me on that commit of ruby
No idea why it failed on the first place, but let's continue the discussion on #255 🤷♀️
With a fresh
ruby-dev
I get this error:We are currently using ruby-lsp
0.4.1
. If I upgrade to the latest0.13.4
and then fixup the code to be able to run, the results are incorrectraises with