ruby/benchmark/complex_float_new.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 строки
198 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_new: c = Complex(a, b)
loop_count: 1000000