Permalink
Browse files

rename benchmark titles

  • Loading branch information...
1 parent f38fb34 commit 047245dc30bff6708629c25ed25c5ab20a32834a @brianmario committed Aug 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 benchmark/detection.rb
View
@@ -16,14 +16,14 @@
Benchmark.bmbm do |x|
# new detector every iteration
- x.report 'class-level detect' do
+ x.report 'singleton call' do
TIMES.times do
CharlockHolmes::EncodingDetector.detect CONTENT
end
end
# shared detector for all iterations
- x.report 'instance-level detect' do
+ x.report 'reusing a single detector' do
TIMES.times do
DETECTOR.detect CONTENT
end

0 comments on commit 047245d

Please sign in to comment.