зеркало из https://github.com/github/ruby.git
30 строки
449 B
YAML
30 строки
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
|