1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/benchmark/numeric_methods.yml
S.H c6f439a6a8
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
2022-10-27 09:13:16 -07:00

29 lines
449 B
YAML

prelude: |
int = 42
flo = 4.2
benchmark:
real?: |
int.real?
integer?: |
flo.integer?
finite?: |
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