repo.or.cz
/
ruby.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git]
/
benchmark
/
string_index.rb
blob
77831110822f617e5469df45b9ea439010f319af
1
str1 = "あ" * 1024 + "い" # not single byte optimizable
2
str2 = "い"
3
100_000.times { str1.index(str2) }