Skip to content

Instantly share code, notes, and snippets.

@willbeason
Last active August 24, 2021 04:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save willbeason/1d718946b5381ebdbe09922110a235f9 to your computer and use it in GitHub Desktop.
============= N = 32
goos: windows
goarch: amd64
pkg: github.com/willbeason/extract-wikipedia/pkg/arrays
cpu: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Benchmark_CopyClone-8 434476585 2.642 ns/op
Benchmark_ConvertClone-8 1000000000 0.9713 ns/op
============= N = 64
Benchmark_CopyClone-8 362198325 3.123 ns/op
Benchmark_ConvertClone-8 978221527 1.244 ns/op
============= N = 128
Benchmark_CopyClone-8 332155105 3.633 ns/op
Benchmark_ConvertClone-8 401070054 3.000 ns/op
============= N = 256
Benchmark_CopyClone-8 201205590 5.913 ns/op
Benchmark_ConvertClone-8 216794764 5.530 ns/op
============= N = 512
Benchmark_CopyClone-8 83416170 14.67 ns/op
Benchmark_ConvertClone-8 92558311 13.07 ns/op
============= N = 1024
Benchmark_CopyClone-8 55858119 21.31 ns/op
Benchmark_ConvertClone-8 54692626 22.65 ns/op
============= N = 2048
Benchmark_CopyClone-8 34438369 35.30 ns/op
Benchmark_ConvertClone-8 27981811 42.91 ns/op
============= N = 4096
Benchmark_CopyClone-8 13931748 85.47 ns/op
Benchmark_ConvertClone-8 14155500 86.10 ns/op
============= N = 8192
Benchmark_CopyClone-8 7183137 163.7 ns/op
Benchmark_ConvertClone-8 7762644 151.7 ns/op
============= N = 65536
Benchmark_CopyClone-8 523092 2294 ns/op
Benchmark_ConvertClone-8 546910 2201 ns/op
============= N = 131072
Benchmark_CopyClone-8 180338 6020 ns/op
Benchmark_ConvertClone-8 174375 6957 ns/op
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment