mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
14 lines
184 B
YAML
14 lines
184 B
YAML
|
prelude: |
|
||
|
int = 42
|
||
|
flo = 4.2
|
||
|
benchmark:
|
||
|
real?: |
|
||
|
int.real?
|
||
|
integer?: |
|
||
|
flo.integer?
|
||
|
finite?: |
|
||
|
int.finite?
|
||
|
infinite?: |
|
||
|
int.infinite?
|
||
|
loop_count: 20000000
|