summaryrefslogtreecommitdiff
path: root/benchmark/vm2_module_const_set.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm2_module_const_set.yml')
-rw-r--r--benchmark/vm2_module_const_set.yml15
1 files changed, 6 insertions, 9 deletions
diff --git a/benchmark/vm2_module_const_set.yml b/benchmark/vm2_module_const_set.yml
index a69d499963..05a640069c 100644
--- a/benchmark/vm2_module_const_set.yml
+++ b/benchmark/vm2_module_const_set.yml
@@ -1,11 +1,8 @@
+prelude: |
+ module M
+ end
+ $VERBOSE = nil
benchmark:
vm2_module_const_set: |
- i = 0
- module M
- end
- $VERBOSE = nil
- while i<6_000_000 # benchmark loop 2
- i += 1
- M.const_set(:X, Module.new)
- end
-loop_count: 1
+ M.const_set(:X, Module.new)
+loop_count: 6000000