diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-09-20 06:07:28 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 06:07:28 +0900 |
commit | f8dad616c2ee2d83b3162da8d86865b0f2a782de (patch) | |
tree | a65962e5598aab1e2bf2591cbaa046ece38695bf /yjit | |
parent | 26135312f61014967ef223dd16ad6577ebd9c5d8 (diff) |
YJIT: Show --yjit-stats of railsbench on CI (#6403)
* YJIT: Show --yjit-stats of railsbench on CI
* YJIT: Use --enable-yjit=dev to see ratio_in_yjit
* YJIT: Show master GitHub URL for quick comparison
* YJIT: Avoid making CI red by a yjit-bench failure
Notes
Notes:
Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/yjit.mk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/yjit/yjit.mk b/yjit/yjit.mk index 81441a7925..fe182b3dcc 100644 --- a/yjit/yjit.mk +++ b/yjit/yjit.mk @@ -51,6 +51,19 @@ endif # TODO: might need to move for BSD Make support miniruby$(EXEEXT): $(YJIT_LIBS) +# By using YJIT_BENCH_OPTS instead of RUN_OPTS, you can skip passing the options to `make install` +YJIT_BENCH_OPTS = $(RUN_OPTS) --enable-gems +YJIT_BENCH = benchmarks/railsbench/benchmark.rb + +# Run yjit-bench's ./run_once.sh for CI +yjit-bench: install update-yjit-bench PHONY + $(Q) cd $(srcdir)/yjit-bench && PATH=$(prefix)/bin:$$PATH \ + ./run_once.sh $(YJIT_BENCH_OPTS) $(YJIT_BENCH) + +update-yjit-bench: + $(Q) $(tooldir)/git-refresh -C $(srcdir) --branch main \ + https://github.com/Shopify/yjit-bench yjit-bench $(GIT_OPTS) + # Generate Rust bindings. See source for details. # Needs `./configure --enable-yjit=dev` and Clang. ifneq ($(strip $(CARGO)),) # if configure found Cargo |