bench/bench.rb in mini_mime-1.0.0 vs bench/bench.rb in mini_mime-1.0.1
- old
+ new
@@ -26,11 +26,11 @@
Benchmark.ips do |bm|
bm.report 'cached content_type lookup MiniMime' do
MiniMime.lookup_by_filename("a.txt").content_type
end
- bm.report 'content_type lookup Mime::Types' do
+ bm.report 'content_type lookup MIME::Types' do
MIME::Types.type_for("a.txt")[0].content_type
end
end
module MiniMime
@@ -44,9 +44,9 @@
Benchmark.ips do |bm|
bm.report 'uncached content_type lookup MiniMime' do
MiniMime.lookup_by_filename("a.txt").content_type
end
- bm.report 'content_type lookup Mime::Types' do
+ bm.report 'content_type lookup MIME::Types' do
MIME::Types.type_for("a.txt")[0].content_type
end
end