summaryrefslogtreecommitdiff
path: root/benchmark/mjit_exivar.yml
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-06-22 00:54:27 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2020-06-22 00:54:27 -0700
commit4c5780e51ef1cd122c6cff863657bd7c523d65ec (patch)
tree031f7e660e9684c02dea19e5a18de7c98ebc6b71 /benchmark/mjit_exivar.yml
parentfaf93e45459793870346f17472a30f90c9b2f5b7 (diff)
Share warmup logic across MJIT benchmarks
Diffstat (limited to 'benchmark/mjit_exivar.yml')
-rw-r--r--benchmark/mjit_exivar.yml15
1 files changed, 1 insertions, 14 deletions
diff --git a/benchmark/mjit_exivar.yml b/benchmark/mjit_exivar.yml
index e6fbae96de..2584fa6410 100644
--- a/benchmark/mjit_exivar.yml
+++ b/benchmark/mjit_exivar.yml
@@ -1,3 +1,4 @@
+type: lib/benchmark_driver/runner/mjit
prelude: |
class Bench < Hash
def initialize
@@ -11,20 +12,6 @@ prelude: |
bench = Bench.new
- if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
- jit_min_calls = 10000
- i = 0
- while i < jit_min_calls
- bench.exivar
- i += 1
- end
- RubyVM::MJIT.pause # compile (1)
- # issue recompile
- bench.exivar
- RubyVM::MJIT.resume
- RubyVM::MJIT.pause # compile (2)
- end
-
benchmark:
mjit_exivar: bench.exivar