RosettaCodeData/Task/Palindrome-detection/Crystal/palindrome-detection-3.crystal
2018-08-17 15:15:24 +01:00

5 lines
156 B
Text

require "benchmark"
Benchmark.ips do |x|
x.report("declarative") { palindrome("hannah") }
x.report("imperative") { palindrome_imperative("hannah")}
end