summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2022-10-28 01:13:16 +0900
committerGitHub <noreply@github.com>2022-10-27 09:13:16 -0700
commitc6f439a6a8df582416e756d7511aa4d9c72071a9 (patch)
tree1c9d36b4ace554f42160800e8343a88a180b85fd /benchmark
parent7cf7e6c33226093c9c4e3078f7ced3b9b9c99b05 (diff)
downloadruby-c6f439a6a8df582416e756d7511aa4d9c72071a9.tar.gz
Improve performance some `Integer` and `Float` methods [Feature #19085] (#6638)
* Improve some Integer and Float methods * Using alias and Remove unnecessary code * Remove commentout code
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/numeric_methods.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/benchmark/numeric_methods.yml b/benchmark/numeric_methods.yml
index 433c2268a3..1384902935 100644
--- a/benchmark/numeric_methods.yml
+++ b/benchmark/numeric_methods.yml
@@ -10,4 +10,20 @@ benchmark:
int.finite?
infinite?: |
int.infinite?
+ integer_real: |
+ int.real
+ float_real: |
+ flo.real
+ integr_imag: |
+ int.imag
+ float_imag: |
+ flo.imag
+ integer_conj: |
+ int.conj
+ float_conj: |
+ flo.conj
+ integer_numerator: |
+ int.numerator
+ integer_denominator: |
+ int.denominator
loop_count: 20000000