From 95a187e0404cc161b3d5690d48ea4ff2a40ceb91 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sun, 8 Jul 2018 15:12:24 +0000 Subject: benchmark: convert bm_vm1_*.rb to vm1_*.yml This YAML transformation is needed to support whileloop time substituion by benchmark_driver.gem later. This commmit changes no benchmark behavior. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- benchmark/vm1_gc_short_with_long.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 benchmark/vm1_gc_short_with_long.yml (limited to 'benchmark/vm1_gc_short_with_long.yml') diff --git a/benchmark/vm1_gc_short_with_long.yml b/benchmark/vm1_gc_short_with_long.yml new file mode 100644 index 0000000000..f173ec0ca5 --- /dev/null +++ b/benchmark/vm1_gc_short_with_long.yml @@ -0,0 +1,16 @@ +benchmark: + vm1_gc_short_with_long: | + long_lived = Array.new(1_000_000){|i| "#{i}"} + GC.start + GC.start + i = 0 + while i<30_000_000 # while loop 1 + a = '' # short-lived String + b = '' + c = '' + d = '' + e = '' + f = '' + i+=1 + end +loop_count: 1 -- cgit v1.2.3