Skip to content

Instantly share code, notes, and snippets.

@willbeason
Created August 24, 2021 04:02
Show Gist options
  • Save willbeason/59fe7823428d9db0c3e4d7386bc338ac to your computer and use it in GitHub Desktop.
Save willbeason/59fe7823428d9db0c3e4d7386bc338ac 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 448114166 2.644 ns/op
Benchmark_ConvertClone-8 1000000000 0.7849 ns/op
============= N = 64
Benchmark_CopyClone-8 398739318 3.019 ns/op
Benchmark_ConvertClone-8 932270544 1.220 ns/op
============= N = 128
Benchmark_CopyClone-8 330587618 3.605 ns/op
Benchmark_ConvertClone-8 403762663 2.972 ns/op
============= N = 256
Benchmark_CopyClone-8 144272594 8.136 ns/op
Benchmark_ConvertClone-8 145139952 8.253 ns/op
============= N = 2048
Benchmark_CopyClone-8 24555644 48.39 ns/op
Benchmark_ConvertClone-8 22908326 52.35 ns/op
============= N = 4096
Benchmark_CopyClone-8 13860349 86.78 ns/op
Benchmark_ConvertClone-8 13829983 84.95 ns/op
============= N = 8192
Benchmark_CopyClone-8 7205017 164.9 ns/op
Benchmark_ConvertClone-8 7813084 154.2 ns/op
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment