1- yjit -bench
1+ ruby -bench
22==========
33
4- Small set of benchmarks and scripts for the YJIT Ruby JIT compiler project, which lives in
5- the [ Shopify/yjit] ( https://github.com/Shopify/yjit ) repository.
4+ Small set of benchmarks and scripts for the Ruby programming language.
65
76The benchmarks are found in the ` benchmarks ` directory. Individual Ruby files
87in ` benchmarks ` are microbenchmarks. Subdirectories under ` benchmarks ` are
@@ -20,12 +19,12 @@ graphed in any spreadsheet editor.
2019
2120Clone this repository:
2221```
23- git clone https://github.com/ruby/yjit-bench.git yjit -bench
22+ git clone https://github.com/ruby/ruby -bench
2423```
2524
2625### Benchmarking YJIT
2726
28- yjit -bench supports benchmarking any Ruby implementation. But if you want to benchmark YJIT,
27+ ruby -bench supports benchmarking any Ruby implementation. But if you want to benchmark YJIT,
2928follow [ these instructions] ( https://github.com/ruby/ruby/blob/master/doc/yjit/yjit.md#building-yjit )
3029to build and install YJIT.
3130
@@ -40,7 +39,7 @@ chruby ruby-yjit
4039
4140To run all the benchmarks and record the data:
4241```
43- cd yjit -bench
42+ cd ruby -bench
4443./run_benchmarks.rb
4544```
4645
@@ -104,7 +103,7 @@ ruby benchmarks/some_benchmark.rb
104103
105104## Ruby options
106105
107- By default, yjit -bench benchmarks the Ruby used for ` run_benchmarks.rb ` .
106+ By default, ruby -bench benchmarks the Ruby used for ` run_benchmarks.rb ` .
108107If the Ruby has ` --yjit ` option, it compares two Ruby commands, ` -e "interp::ruby" ` and ` -e "yjit::ruby --yjit ` .
109108However, if you specify ` -e ` yourself, you can override what Ruby is benchmarked.
110109
0 commit comments