Sha256: d9a4f44c7b0edab9757cee74e240d1548b8d3aee0fb02e4e5e19f656640a0ac2
Contents?: true
Size: 576 Bytes
Versions: 2
Compression:
Stored size: 576 Bytes
Contents
require_relative "helper" require_relative "hmote_helper" require_relative "rails_helper" text = %q(some text without escapable characters).html_safe Benchmark.ips do |x| x.report("hmote") { hmote(text: text) } x.report("rails") { rails(text: text) } end # Calculating ------------------------------------- # hmote 29.035k i/100ms # rails 14.607k i/100ms # ------------------------------------------------- # hmote 367.044k (± 5.9%) i/s - 1.829M # rails 157.936k (± 5.9%) i/s - 788.778k
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hmote-1.2.0 | benchmarks/safe.rb |
hmote-1.1.0 | benchmarks/safe.rb |