ruby-changes:54465
From: mrkn <ko1@a...>
Date: Tue, 1 Jan 2019 21:20:08 +0900 (JST)
Subject: [ruby-changes:54465] mrkn:r66680 (trunk): benchmark/complex_float_*.yml: New benchmarks
mrkn 2019-01-01 21:20:04 +0900 (Tue, 01 Jan 2019) New Revision: 66680 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66680 Log: benchmark/complex_float_*.yml: New benchmarks Add new benchmark scripts for binary operations of Complex with float components. Added files: trunk/benchmark/complex_float_add.yml trunk/benchmark/complex_float_div.yml trunk/benchmark/complex_float_mul.yml trunk/benchmark/complex_float_new.yml trunk/benchmark/complex_float_power.yml trunk/benchmark/complex_float_sub.yml Index: benchmark/complex_float_add.yml =================================================================== --- benchmark/complex_float_add.yml (nonexistent) +++ benchmark/complex_float_add.yml (revision 66680) @@ -0,0 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/complex_float_add.yml#L1 +prelude: | + max, min = 1000.0, -1000.0 + a = Complex(rand(max)+min, rand(max)+min) + b = Complex(rand(max)+min, rand(max)+min) +benchmark: + complex_float_add: c = a + b +loop_count: 1000000 Index: benchmark/complex_float_new.yml =================================================================== --- benchmark/complex_float_new.yml (nonexistent) +++ benchmark/complex_float_new.yml (revision 66680) @@ -0,0 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/complex_float_new.yml#L1 +prelude: | + max, min = 1000.0, -1000.0 + a = Complex(rand(max)+min, rand(max)+min) + b = Complex(rand(max)+min, rand(max)+min) +benchmark: + complex_float_new: c = Complex(a, b) +loop_count: 1000000 Index: benchmark/complex_float_sub.yml =================================================================== --- benchmark/complex_float_sub.yml (nonexistent) +++ benchmark/complex_float_sub.yml (revision 66680) @@ -0,0 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/complex_float_sub.yml#L1 +prelude: | + max, min = 1000.0, -1000.0 + a = Complex(rand(max)+min, rand(max)+min) + b = Complex(rand(max)+min, rand(max)+min) +benchmark: + complex_float_sub: c = a - b +loop_count: 1000000 Index: benchmark/complex_float_div.yml =================================================================== --- benchmark/complex_float_div.yml (nonexistent) +++ benchmark/complex_float_div.yml (revision 66680) @@ -0,0 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/complex_float_div.yml#L1 +prelude: | + max, min = 1000.0, -1000.0 + a = Complex(rand(max)+min, rand(max)+min) + b = Complex(rand(max)+min, rand(max)+min) +benchmark: + complex_float_div: c = a / b +loop_count: 1000000 Index: benchmark/complex_float_power.yml =================================================================== --- benchmark/complex_float_power.yml (nonexistent) +++ benchmark/complex_float_power.yml (revision 66680) @@ -0,0 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/complex_float_power.yml#L1 +prelude: | + max, min = 1000.0, -1000.0 + a = Complex(rand(max)+min, rand(max)+min) + b = Complex(rand(max)+min, rand(max)+min) +benchmark: + complex_float_power: c = a ** b +loop_count: 1000000 Index: benchmark/complex_float_mul.yml =================================================================== --- benchmark/complex_float_mul.yml (nonexistent) +++ benchmark/complex_float_mul.yml (revision 66680) @@ -0,0 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/complex_float_mul.yml#L1 +prelude: | + max, min = 1000.0, -1000.0 + a = Complex(rand(max)+min, rand(max)+min) + b = Complex(rand(max)+min, rand(max)+min) +benchmark: + complex_float_mul: c = a * b +loop_count: 1000000 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/