summaryrefslogtreecommitdiff
path: root/benchmark/complex_float_power.yml
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-01 12:20:04 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-01 12:20:04 +0000
commit8d473272dbd9f5c6adc518b780eafee3d1f0d6bc (patch)
treeb9e9b3cb49ee89bced073237c71939fc42f5b63d /benchmark/complex_float_power.yml
parent11ba186c4725ef7acecbf99243083bc909b7c960 (diff)
benchmark/complex_float_*.yml: New benchmarks
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
Diffstat (limited to 'benchmark/complex_float_power.yml')
-rw-r--r--benchmark/complex_float_power.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/benchmark/complex_float_power.yml b/benchmark/complex_float_power.yml
new file mode 100644
index 0000000000..c40a31ab55
--- /dev/null
+++ b/benchmark/complex_float_power.yml
@@ -0,0 +1,7 @@
+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