This website requires JavaScript.
Explore
Help
Sign In
kotovalexarian-likes-github
/
ruby--ruby
mirror of
https://github.com/ruby/ruby.git
Watch
1
Star
0
Fork
You've already forked ruby--ruby
0
Code
Releases
Activity
de6ef2ca71
ruby--ruby
/
benchmark
/
string_index.rb
4 lines
106 B
Ruby
Raw
Blame
History
str1
=
"
あ
"
*
1024
+
"
い
"
# not single byte optimizable
str2
=
"
い
"
100_000
.
times
{
str1
.
index
(
str2
)
}
View Git Blame
Copy Permalink