ruby/benchmark/complex_float_div.yml

8 строки
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_div: c = a / b
loop_count: 1000000