diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2017-06-23 01:21:55 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2017-06-23 01:21:55 -0600 |
| commit | 0112f7f7f7937870313b7506e596d645893ea5cd (patch) | |
| tree | 29fcf7940ea1e551492a4c00505bc4f4900c74d5 /benchmark | |
| parent | e2e9bf29c1b0f5716f4aa2ed5e2fc38a8199585b (diff) | |
unset stylesheet instead of setting linkcss in benchmark
Diffstat (limited to 'benchmark')
| -rwxr-xr-x | benchmark/benchmark.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/benchmark.rb b/benchmark/benchmark.rb index b34c763a..fbdcb81d 100755 --- a/benchmark/benchmark.rb +++ b/benchmark/benchmark.rb @@ -79,7 +79,7 @@ when 'userguide' result = Benchmark.bmbm {|bm| bm.report(%(Convert #{sample_file} (x#{$repeat}))) { $repeat.times { - Asciidoctor.render_file sample_file, :backend => backend, :safe => Asciidoctor::SafeMode::SAFE, :eruby => 'erubis', :header_footer => true, :to_file => false, :attributes => {'linkcss' => '', 'toc' => nil, 'numbered' => nil, 'icons' => nil, 'compat-mode' => ''} + Asciidoctor.render_file sample_file, :backend => backend, :safe => Asciidoctor::SafeMode::SAFE, :eruby => 'erubis', :header_footer => true, :to_file => false, :attributes => {'stylesheet' => nil, 'toc' => nil, 'numbered' => nil, 'icons' => nil, 'compat-mode' => ''} } } } @@ -100,7 +100,7 @@ when 'userguide-loop' loop_timings = [] (1..$repeat).each do start = Time.now - Asciidoctor.render_file sample_file, :backend => backend, :safe => Asciidoctor::SafeMode::SAFE, :eruby => 'erubis', :header_footer => true, :to_file => false, :attributes => { 'linkcss' => '', 'toc' => nil, 'numbered' => nil, 'icons' => nil, 'compat-mode' => '' } + Asciidoctor.render_file sample_file, :backend => backend, :safe => Asciidoctor::SafeMode::SAFE, :eruby => 'erubis', :header_footer => true, :to_file => false, :attributes => { 'stylesheet' => nil, 'toc' => nil, 'numbered' => nil, 'icons' => nil, 'compat-mode' => '' } loop_timings << (Time.now - start) end timings << loop_timings @@ -123,7 +123,7 @@ when 'mdbasics-loop' loop_timings = [] (1..$repeat).each do start = Time.now - Asciidoctor.render_file sample_file, :backend => backend, :safe => Asciidoctor::SafeMode::SAFE, :header_footer => false, :to_file => false, :attributes => { 'linkcss' => '', 'idprefix' => '', 'idseparator' => '-', 'showtitle' => '' } + Asciidoctor.render_file sample_file, :backend => backend, :safe => Asciidoctor::SafeMode::SAFE, :header_footer => false, :to_file => false, :attributes => { 'stylesheet' => nil, 'idprefix' => '', 'idseparator' => '-', 'showtitle' => '' } loop_timings << (Time.now - start) end timings << loop_timings |
