Created
November 20, 2014 03:40
-
-
Save benbjohnson/08d8e9bd898ce430d1a1 to your computer and use it in GitHub Desktop.
Append, Append+Cap, Direct Index Benchmark
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
1 10 100 1000 | |
--------------------------- | |
Append | 88ns | 63ns | 23ns | 14ns | | |
Append+Cap | 88ns | 16ns | 10ns | 8ns | | |
Index | 84ns | 14ns | 7ns | 6ns | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test code: http://play.golang.org/p/W_XQUQ0JPF