mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
8d473272db
Add new benchmark scripts for binary operations of Complex with float components. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
7 lines
190 B
YAML
7 lines
190 B
YAML
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
|