Added benchmark for the CSS parser.

This commit is contained in:
Yorick Peterse 2015-02-13 09:36:24 +01:00
parent f94461a9ca
commit c68b038e53
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
require_relative '../../benchmark_helper'
css = 'foo bar bar.some_class element#with_id[title="Foo"]'
Benchmark.ips do |bench|
bench.report 'CSS' do
Oga::CSS::Parser.new(css).parse
end
end