Last active
August 29, 2015 14:19
-
-
Save xlab/1e40af2eac8783ce50d1 to your computer and use it in GitHub Desktop.
skarademir/naturalsort VS xlab/handysort
This file contains hidden or 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
| Testcase from https://github.com/skarademir/naturalsort/blob/master/naturalsort_test.go | |
| BenchmarkNaturalSort 50000 28738 ns/op | |
| BenchmarkHandySort 3000000 517 ns/op | |
| A real battle-case from https://github.com/xlab/handysort/blob/master/strings_test.go | |
| (10000 random alphanumeric strings) | |
| BenchmarkStringSort 500 2665145 ns/op | |
| BenchmarkHandyStringSort 100 11817051 ns/op | |
| BenchmarkNaturalStringSort 1 1013808894 ns/op | |
| :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment