[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / benchmark / string_index.rb
blob77831110822f617e5469df45b9ea439010f319af
1 str1 = "あ" * 1024 + "い" # not single byte optimizable
2 str2 = "い"
3 100_000.times { str1.index(str2) }