summaryrefslogtreecommitdiff
path: root/benchmark/string_index.rb
blob: 77831110822f617e5469df45b9ea439010f319af (plain)
1
2
3
str1 = "あ" * 1024 + "い" # not single byte optimizable
str2 = "い"
100_000.times { str1.index(str2) }