1 2 3 4 5 6 7 8 9 10 11 |
str = "1 1 a\n" * 10000
TESTS = 10_000
Benchmark.bmbm do |results|
str.scanf("%x %x %s\n") do |res|
# p res
end
end
|
Pastie
Support Pastie
or read my
Pastie << self
blog
1 2 3 4 5 6 7 8 9 10 11 |
str = "1 1 a\n" * 10000
TESTS = 10_000
Benchmark.bmbm do |results|
str.scanf("%x %x %s\n") do |res|
# p res
end
end
|