From 12068aa4e980ab32a0438408a519030e65dabf5e Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sun, 8 Jul 2018 17:03:23 +0000 Subject: 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 --- benchmark/vm2_regexp.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'benchmark/vm2_regexp.yml') diff --git a/benchmark/vm2_regexp.yml b/benchmark/vm2_regexp.yml index da7416b354..0f3968a99b 100644 --- a/benchmark/vm2_regexp.yml +++ b/benchmark/vm2_regexp.yml @@ -1,9 +1,6 @@ +prelude: | + str = 'xxxhogexxx' benchmark: vm2_regexp: | - i = 0 - str = 'xxxhogexxx' - while i<6_000_000 # benchmark loop 2 - /hoge/ =~ str - i += 1 - end -loop_count: 1 + /hoge/ =~ str +loop_count: 6000000 -- cgit v1.2.3