Skip to content

Instantly share code, notes, and snippets.

@ucarion
Created April 18, 2015 08:02
Show Gist options
  • Save ucarion/7141e7db8cb3d877af75 to your computer and use it in GitHub Desktop.
Save ucarion/7141e7db8cb3d877af75 to your computer and use it in GitHub Desktop.
Benchmarks
test tokenize lipsum-zh.html size 1024 ... bench: 3563 ns/iter (+/- 65)
test tokenize lipsum-zh.html size 1048576 ... bench: 4229471 ns/iter (+/- 344137)
test tokenize lipsum.html size 1024 ... bench: 1580 ns/iter (+/- 26)
test tokenize lipsum.html size 1048576 ... bench: 2463919 ns/iter (+/- 331551)
test tokenize lipsum.html size 1048576 (clone only) ... bench: 257680 ns/iter (+/- 12418)
test tokenize medium-fragment.html ... bench: 80507 ns/iter (+/- 1004)
test tokenize small-fragment.html ... bench: 7614 ns/iter (+/- 2761)
test tokenize strong.html size 1024 ... bench: 52213 ns/iter (+/- 9796)
test tokenize strong.html size 1048576 ... bench: 55531397 ns/iter (+/- 34521875)
test tokenize tiny-fragment.html ... bench: 1347 ns/iter (+/- 265)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment