summaryrefslogtreecommitdiff
path: root/benchmark/vm2_case.yml
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-08 17:03:23 (GMT)
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-08 17:03:23 (GMT)
commit12068aa4e980ab32a0438408a519030e65dabf5e (patch)
treed62bc1f1849ef9d5c9abd2c58d0ababde219f2b5 /benchmark/vm2_case.yml
parent1aedeaa476a073d81d0539f66cfb4f6363b6766a (diff)
benchmark/vm2_*.yml: abstract away the while loop
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/vm2_case.yml')
-rw-r--r--benchmark/vm2_case.yml23
1 files changed, 10 insertions, 13 deletions
diff --git a/benchmark/vm2_case.yml b/benchmark/vm2_case.yml
index 7875ab1..7716783 100644
--- a/benchmark/vm2_case.yml
+++ b/benchmark/vm2_case.yml
@@ -1,16 +1,13 @@
benchmark:
vm2_case: |
- i = 0
- while i<6_000_000 # while loop 2
- case :foo
- when :bar
- raise
- when :baz
- raise
- when :boo
- raise
- when :foo
- i += 1
- end
+ case :foo
+ when :bar
+ raise
+ when :baz
+ raise
+ when :boo
+ raise
+ when :foo
+ # noop
end
-loop_count: 1
+loop_count: 6000000