mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-06 22:39:46 +08:00
10 lines
182 B
Ruby
10 lines
182 B
Ruby
def bm_rational
|
|
Benchmark.benchmark("", 30, "%r\n") do |x|
|
|
rational_new(x)
|
|
rational_plus(x)
|
|
rational_minus(x)
|
|
rational_divide(x)
|
|
rational_multiply(x)
|
|
end
|
|
end
|