repo.or.cz
/
ruby.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git]
/
benchmark
/
range_count.yml
blob
58f53a023613cc23d6f65d113ac4438fa417b251
1
prelude: |
2
r_1 = 1..1
3
r_1k = 1..1000
4
r_1m = 1..1000000
5
r_str = 'a'..'z'
6
7
benchmark:
8
'int 1': r_1.count
9
'int 1K': r_1k.count
10
'int 1M': r_1m.count
11
string: r_str.count