Created
March 11, 2019 18:06
-
-
Save jaynetics/b024ffa19ce28c731289bd880b492b0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'stringex' | |
require 'sexy_slug' | |
require 'benchmark' | |
string = (0..0xD799).map { |cp| cp.chr('utf-8') }.join | |
Benchmark.bmbm do |x| | |
x.report { string.to_url } | |
x.report { SexySlug.from(string) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment