mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
13 lines
421 B
Ruby
Executable file
13 lines
421 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
|
|
require 'bundler/setup'
|
|
require 'hamlit'
|
|
require 'faml'
|
|
require 'benchmark/ips'
|
|
require_relative '../utils/benchmark_ips_extension'
|
|
|
|
Benchmark.ips do |x|
|
|
x.report("Faml::AB.build") { Faml::AttributeBuilder.build("'", true, nil, {:id=>"book"}, id: %w[content active]) }
|
|
x.report("Hamlit::AB.build_id") { Hamlit::AttributeBuilder.build_id(true, "book", %w[content active]) }
|
|
x.compare!
|
|
end
|