Skip to content

Instantly share code, notes, and snippets.

@MadVikingGod
Created June 27, 2022 21:32
Show Gist options
  • Save MadVikingGod/1d48ff07ee87e3c66acdc33b895d6b3d to your computer and use it in GitHub Desktop.
Save MadVikingGod/1d48ff07ee87e3c66acdc33b895d6b3d to your computer and use it in GitHub Desktop.
benchstat bench-old bench-new
name old time/op new time/op delta
Int64Sum/count-10-4 7.81µs ±37% 3.29µs ± 5% -57.85% (p=0.000 n=10+10)
Int64Sum/count-50-4 36.1µs ±31% 15.6µs ± 7% -56.85% (p=0.000 n=10+10)
Int64Sum/count-100-4 64.7µs ± 5% 31.0µs ± 4% -52.17% (p=0.000 n=8+10)
Float64Sum/count-10-4 8.22µs ±31% 3.50µs ± 2% -57.45% (p=0.000 n=10+10)
Float64Sum/count-50-4 36.2µs ±29% 16.6µs ± 5% -54.13% (p=0.000 n=9+10)
Float64Sum/count-100-4 69.9µs ±15% 33.3µs ± 4% -52.37% (p=0.000 n=8+10)
Int64SumParallel-4 11.4ms ±19% 0.0ms ±51% -99.59% (p=0.000 n=9+10)
Float64SumParallel-4 12.3ms ±31% 0.1ms ±60% -99.57% (p=0.000 n=10+10)
name old alloc/op new alloc/op delta
Int64Sum/count-10-4 1.57kB ± 0% 0.50kB ± 0% -67.98% (p=0.000 n=10+10)
Int64Sum/count-50-4 6.88kB ± 0% 2.85kB ± 0% -58.63% (p=0.000 n=10+10)
Int64Sum/count-100-4 13.8kB ± 0% 5.2kB ± 0% -62.15% (p=0.000 n=10+9)
Float64Sum/count-10-4 1.65kB ± 0% 0.58kB ± 0% -64.68% (p=0.000 n=10+10)
Float64Sum/count-50-4 7.28kB ± 0% 3.25kB ± 0% -55.42% (p=0.000 n=10+10)
Float64Sum/count-100-4 14.6kB ± 0% 6.0kB ± 0% -58.75% (p=0.000 n=9+10)
Int64SumParallel-4 11.9kB ±17% 1.0kB ±20% -91.49% (p=0.000 n=10+10)
Float64SumParallel-4 12.0kB ±19% 1.2kB ±25% -89.91% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
Int64Sum/count-10-4 46.0 ± 0% 12.0 ± 0% -73.91% (p=0.000 n=10+10)
Int64Sum/count-50-4 208 ± 0% 52 ± 0% -75.00% (p=0.000 n=10+10)
Int64Sum/count-100-4 409 ± 0% 102 ± 0% -75.06% (p=0.000 n=10+10)
Float64Sum/count-10-4 56.0 ± 0% 22.0 ± 0% -60.71% (p=0.000 n=10+10)
Float64Sum/count-50-4 258 ± 0% 102 ± 0% -60.47% (p=0.000 n=10+10)
Float64Sum/count-100-4 509 ± 0% 202 ± 0% -60.31% (p=0.000 n=10+10)
Int64SumParallel-4 387 ±18% 20 ±21% -94.88% (p=0.000 n=10+10)
Float64SumParallel-4 406 ±19% 41 ±25% -89.92% (p=0.000 n=10+10)
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 385447 3262 ns/op 502 B/op 12 allocs/op
BenchmarkInt64Sum/count-50-4 65300 15997 ns/op 2847 B/op 52 allocs/op
BenchmarkInt64Sum/count-100-4 39901 30605 ns/op 5216 B/op 102 allocs/op
BenchmarkFloat64Sum/count-10-4 349654 3495 ns/op 582 B/op 22 allocs/op
BenchmarkFloat64Sum/count-50-4 63328 16178 ns/op 3248 B/op 102 allocs/op
BenchmarkFloat64Sum/count-100-4 38409 32154 ns/op 6014 B/op 202 allocs/op
BenchmarkInt64SumParallel-4 45541 28573 ns/op 840 B/op 16 allocs/op
BenchmarkFloat64SumParallel-4 42468 34263 ns/op 951 B/op 32 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 12.376s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 379309 3239 ns/op 502 B/op 12 allocs/op
BenchmarkInt64Sum/count-50-4 77992 15374 ns/op 2845 B/op 52 allocs/op
BenchmarkInt64Sum/count-100-4 40152 29829 ns/op 5210 B/op 102 allocs/op
BenchmarkFloat64Sum/count-10-4 298174 3507 ns/op 582 B/op 22 allocs/op
BenchmarkFloat64Sum/count-50-4 75297 16282 ns/op 3244 B/op 102 allocs/op
BenchmarkFloat64Sum/count-100-4 37929 33253 ns/op 6011 B/op 202 allocs/op
BenchmarkInt64SumParallel-4 49364 31490 ns/op 828 B/op 16 allocs/op
BenchmarkFloat64SumParallel-4 46072 27594 ns/op 951 B/op 32 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 11.533s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 312718 3276 ns/op 502 B/op 12 allocs/op
BenchmarkInt64Sum/count-50-4 77782 15776 ns/op 2846 B/op 52 allocs/op
BenchmarkInt64Sum/count-100-4 40126 30144 ns/op 5212 B/op 102 allocs/op
BenchmarkFloat64Sum/count-10-4 319333 3458 ns/op 582 B/op 22 allocs/op
BenchmarkFloat64Sum/count-50-4 68676 16792 ns/op 3247 B/op 102 allocs/op
BenchmarkFloat64Sum/count-100-4 37622 33941 ns/op 6014 B/op 202 allocs/op
BenchmarkInt64SumParallel-4 39160 28293 ns/op 844 B/op 17 allocs/op
BenchmarkFloat64SumParallel-4 43824 28093 ns/op 959 B/op 32 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 10.983s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 307666 3282 ns/op 502 B/op 12 allocs/op
BenchmarkInt64Sum/count-50-4 71382 15110 ns/op 2850 B/op 52 allocs/op
BenchmarkInt64Sum/count-100-4 39465 30288 ns/op 5215 B/op 102 allocs/op
BenchmarkFloat64Sum/count-10-4 318150 3507 ns/op 582 B/op 22 allocs/op
BenchmarkFloat64Sum/count-50-4 73640 16552 ns/op 3247 B/op 102 allocs/op
BenchmarkFloat64Sum/count-100-4 33109 34003 ns/op 6016 B/op 202 allocs/op
BenchmarkInt64SumParallel-4 25966 70453 ns/op 1216 B/op 24 allocs/op
BenchmarkFloat64SumParallel-4 19742 59144 ns/op 1367 B/op 46 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 13.025s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 385304 3364 ns/op 502 B/op 12 allocs/op
BenchmarkInt64Sum/count-50-4 71331 15107 ns/op 2847 B/op 52 allocs/op
BenchmarkInt64Sum/count-100-4 39002 31490 ns/op 5214 B/op 102 allocs/op
BenchmarkFloat64Sum/count-10-4 335612 3453 ns/op 582 B/op 22 allocs/op
BenchmarkFloat64Sum/count-50-4 71300 16312 ns/op 3245 B/op 102 allocs/op
BenchmarkFloat64Sum/count-100-4 34920 33275 ns/op 6014 B/op 202 allocs/op
BenchmarkInt64SumParallel-4 44407 27399 ns/op 833 B/op 16 allocs/op
BenchmarkFloat64SumParallel-4 46975 31874 ns/op 954 B/op 32 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 11.426s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 357790 3446 ns/op 502 B/op 12 allocs/op
BenchmarkInt64Sum/count-50-4 78102 15110 ns/op 2843 B/op 52 allocs/op
BenchmarkInt64Sum/count-100-4 38800 30083 ns/op 5212 B/op 102 allocs/op
BenchmarkFloat64Sum/count-10-4 328933 3550 ns/op 582 B/op 22 allocs/op
BenchmarkFloat64Sum/count-50-4 69800 16675 ns/op 3246 B/op 102 allocs/op
BenchmarkFloat64Sum/count-100-4 38154 31881 ns/op 6019 B/op 202 allocs/op
BenchmarkInt64SumParallel-4 22383 45943 ns/op 1058 B/op 21 allocs/op
BenchmarkFloat64SumParallel-4 18434 84942 ns/op 1512 B/op 51 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 12.844s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 380085 3214 ns/op 502 B/op 12 allocs/op
BenchmarkInt64Sum/count-50-4 76550 15651 ns/op 2845 B/op 52 allocs/op
BenchmarkInt64Sum/count-100-4 39332 32091 ns/op 5215 B/op 102 allocs/op
BenchmarkFloat64Sum/count-10-4 318538 3433 ns/op 582 B/op 22 allocs/op
BenchmarkFloat64Sum/count-50-4 73627 16272 ns/op 3243 B/op 102 allocs/op
BenchmarkFloat64Sum/count-100-4 37483 33869 ns/op 6013 B/op 202 allocs/op
BenchmarkInt64SumParallel-4 18645 56761 ns/op 1100 B/op 22 allocs/op
BenchmarkFloat64SumParallel-4 21276 50312 ns/op 1280 B/op 43 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 11.651s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 370764 3386 ns/op 502 B/op 12 allocs/op
BenchmarkInt64Sum/count-50-4 79464 15490 ns/op 2846 B/op 52 allocs/op
BenchmarkInt64Sum/count-100-4 38949 31829 ns/op 5206 B/op 102 allocs/op
BenchmarkFloat64Sum/count-10-4 309850 3541 ns/op 582 B/op 22 allocs/op
BenchmarkFloat64Sum/count-50-4 73220 17379 ns/op 3243 B/op 102 allocs/op
BenchmarkFloat64Sum/count-100-4 34966 34667 ns/op 6015 B/op 202 allocs/op
BenchmarkInt64SumParallel-4 27406 62249 ns/op 1130 B/op 22 allocs/op
BenchmarkFloat64SumParallel-4 24283 63222 ns/op 1349 B/op 46 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 13.635s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 374977 3245 ns/op 502 B/op 12 allocs/op
BenchmarkInt64Sum/count-50-4 61123 16679 ns/op 2847 B/op 52 allocs/op
BenchmarkInt64Sum/count-100-4 35545 32019 ns/op 5215 B/op 102 allocs/op
BenchmarkFloat64Sum/count-10-4 329144 3490 ns/op 582 B/op 22 allocs/op
BenchmarkFloat64Sum/count-50-4 73430 17086 ns/op 3246 B/op 102 allocs/op
BenchmarkFloat64Sum/count-100-4 36264 33684 ns/op 6006 B/op 202 allocs/op
BenchmarkInt64SumParallel-4 32470 59962 ns/op 1136 B/op 22 allocs/op
BenchmarkFloat64SumParallel-4 20588 74715 ns/op 1355 B/op 46 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 13.550s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 376704 3228 ns/op 502 B/op 12 allocs/op
BenchmarkInt64Sum/count-50-4 79303 15374 ns/op 2844 B/op 52 allocs/op
BenchmarkInt64Sum/count-100-4 39949 31283 ns/op 5213 B/op 102 allocs/op
BenchmarkFloat64Sum/count-10-4 313554 3540 ns/op 582 B/op 22 allocs/op
BenchmarkFloat64Sum/count-50-4 72109 16340 ns/op 3244 B/op 102 allocs/op
BenchmarkFloat64Sum/count-100-4 36558 32272 ns/op 6011 B/op 202 allocs/op
BenchmarkInt64SumParallel-4 25624 56468 ns/op 1115 B/op 22 allocs/op
BenchmarkFloat64SumParallel-4 27216 75537 ns/op 1443 B/op 49 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 13.660s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 162771 7321 ns/op 1568 B/op 46 allocs/op
BenchmarkInt64Sum/count-50-4 36804 32550 ns/op 6880 B/op 208 allocs/op
BenchmarkInt64Sum/count-100-4 18672 64678 ns/op 13776 B/op 409 allocs/op
BenchmarkFloat64Sum/count-10-4 165078 7318 ns/op 1648 B/op 56 allocs/op
BenchmarkFloat64Sum/count-50-4 36834 33103 ns/op 7280 B/op 258 allocs/op
BenchmarkFloat64Sum/count-100-4 17895 65679 ns/op 14576 B/op 509 allocs/op
BenchmarkInt64SumParallel-4 100 12956310 ns/op 12128 B/op 406 allocs/op
BenchmarkFloat64SumParallel-4 122 14013149 ns/op 12541 B/op 426 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 14.378s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 176234 6964 ns/op 1568 B/op 46 allocs/op
BenchmarkInt64Sum/count-50-4 36999 33435 ns/op 6880 B/op 208 allocs/op
BenchmarkInt64Sum/count-100-4 18631 63286 ns/op 13776 B/op 409 allocs/op
BenchmarkFloat64Sum/count-10-4 162289 7014 ns/op 1648 B/op 56 allocs/op
BenchmarkFloat64Sum/count-50-4 35564 35875 ns/op 7280 B/op 258 allocs/op
BenchmarkFloat64Sum/count-100-4 16413 67370 ns/op 14576 B/op 509 allocs/op
BenchmarkInt64SumParallel-4 100 15912394 ns/op 13670 B/op 458 allocs/op
BenchmarkFloat64SumParallel-4 100 12371775 ns/op 12116 B/op 412 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 12.183s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 144055 6969 ns/op 1568 B/op 46 allocs/op
BenchmarkInt64Sum/count-50-4 32887 32732 ns/op 6880 B/op 208 allocs/op
BenchmarkInt64Sum/count-100-4 18770 65638 ns/op 13776 B/op 409 allocs/op
BenchmarkFloat64Sum/count-10-4 153888 8335 ns/op 1648 B/op 56 allocs/op
BenchmarkFloat64Sum/count-50-4 34356 33247 ns/op 7280 B/op 258 allocs/op
BenchmarkFloat64Sum/count-100-4 17820 67212 ns/op 14576 B/op 509 allocs/op
BenchmarkInt64SumParallel-4 132 9255758 ns/op 11993 B/op 370 allocs/op
BenchmarkFloat64SumParallel-4 100 11395030 ns/op 11604 B/op 383 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 12.442s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 176668 6949 ns/op 1568 B/op 46 allocs/op
BenchmarkInt64Sum/count-50-4 36528 38337 ns/op 6880 B/op 208 allocs/op
BenchmarkInt64Sum/count-100-4 18234 64635 ns/op 13776 B/op 409 allocs/op
BenchmarkFloat64Sum/count-10-4 157932 7319 ns/op 1648 B/op 56 allocs/op
BenchmarkFloat64Sum/count-50-4 35348 35318 ns/op 7280 B/op 258 allocs/op
BenchmarkFloat64Sum/count-100-4 16682 68171 ns/op 14576 B/op 509 allocs/op
BenchmarkInt64SumParallel-4 123 11855922 ns/op 9880 B/op 325 allocs/op
BenchmarkFloat64SumParallel-4 135 8538842 ns/op 9732 B/op 329 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 14.044s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 167535 9258 ns/op 1568 B/op 46 allocs/op
BenchmarkInt64Sum/count-50-4 28756 47261 ns/op 6880 B/op 208 allocs/op
BenchmarkInt64Sum/count-100-4 10000 112480 ns/op 13776 B/op 409 allocs/op
BenchmarkFloat64Sum/count-10-4 149857 9215 ns/op 1648 B/op 56 allocs/op
BenchmarkFloat64Sum/count-50-4 24022 46785 ns/op 7280 B/op 258 allocs/op
BenchmarkFloat64Sum/count-100-4 10000 113774 ns/op 14576 B/op 509 allocs/op
BenchmarkInt64SumParallel-4 141 10155799 ns/op 11133 B/op 356 allocs/op
BenchmarkFloat64SumParallel-4 170 10077713 ns/op 10674 B/op 362 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 13.623s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 175099 10727 ns/op 1568 B/op 46 allocs/op
BenchmarkInt64Sum/count-50-4 28044 44509 ns/op 6880 B/op 208 allocs/op
BenchmarkInt64Sum/count-100-4 12655 113626 ns/op 13776 B/op 409 allocs/op
BenchmarkFloat64Sum/count-10-4 145586 9600 ns/op 1648 B/op 56 allocs/op
BenchmarkFloat64Sum/count-50-4 23274 50691 ns/op 7280 B/op 258 allocs/op
BenchmarkFloat64Sum/count-100-4 8940 122513 ns/op 14577 B/op 509 allocs/op
BenchmarkInt64SumParallel-4 135 12343693 ns/op 11774 B/op 387 allocs/op
BenchmarkFloat64SumParallel-4 100 16111033 ns/op 12999 B/op 442 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 14.516s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 113232 8905 ns/op 1568 B/op 46 allocs/op
BenchmarkInt64Sum/count-50-4 35920 32410 ns/op 6880 B/op 208 allocs/op
BenchmarkInt64Sum/count-100-4 18392 67930 ns/op 13776 B/op 409 allocs/op
BenchmarkFloat64Sum/count-10-4 133101 10784 ns/op 1648 B/op 56 allocs/op
BenchmarkFloat64Sum/count-50-4 28560 38768 ns/op 7280 B/op 258 allocs/op
BenchmarkFloat64Sum/count-100-4 13041 80457 ns/op 14576 B/op 509 allocs/op
BenchmarkInt64SumParallel-4 100 10524065 ns/op 11222 B/op 363 allocs/op
BenchmarkFloat64SumParallel-4 100 12151317 ns/op 12715 B/op 425 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 11.881s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 174348 7029 ns/op 1568 B/op 46 allocs/op
BenchmarkInt64Sum/count-50-4 35227 33568 ns/op 6880 B/op 208 allocs/op
BenchmarkInt64Sum/count-100-4 18784 63842 ns/op 13776 B/op 409 allocs/op
BenchmarkFloat64Sum/count-10-4 168144 7272 ns/op 1648 B/op 56 allocs/op
BenchmarkFloat64Sum/count-50-4 35886 34356 ns/op 7280 B/op 258 allocs/op
BenchmarkFloat64Sum/count-100-4 17512 72106 ns/op 14576 B/op 509 allocs/op
BenchmarkInt64SumParallel-4 100 12059555 ns/op 12883 B/op 417 allocs/op
BenchmarkFloat64SumParallel-4 136 14404592 ns/op 13296 B/op 452 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 13.554s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 161454 6974 ns/op 1568 B/op 46 allocs/op
BenchmarkInt64Sum/count-50-4 37174 32680 ns/op 6880 B/op 208 allocs/op
BenchmarkInt64Sum/count-100-4 17748 65203 ns/op 13776 B/op 409 allocs/op
BenchmarkFloat64Sum/count-10-4 158706 7866 ns/op 1648 B/op 56 allocs/op
BenchmarkFloat64Sum/count-50-4 36048 33496 ns/op 7280 B/op 258 allocs/op
BenchmarkFloat64Sum/count-100-4 17732 69424 ns/op 14576 B/op 509 allocs/op
BenchmarkInt64SumParallel-4 100 12455611 ns/op 12162 B/op 398 allocs/op
BenchmarkFloat64SumParallel-4 100 14905890 ns/op 13097 B/op 444 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 12.135s
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric/internal
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkInt64Sum/count-10-4 174841 7053 ns/op 1568 B/op 46 allocs/op
BenchmarkInt64Sum/count-50-4 35665 33281 ns/op 6880 B/op 208 allocs/op
BenchmarkInt64Sum/count-100-4 18315 62764 ns/op 13776 B/op 409 allocs/op
BenchmarkFloat64Sum/count-10-4 144175 7467 ns/op 1648 B/op 56 allocs/op
BenchmarkFloat64Sum/count-50-4 32515 34463 ns/op 7280 B/op 258 allocs/op
BenchmarkFloat64Sum/count-100-4 17491 68938 ns/op 14576 B/op 509 allocs/op
BenchmarkInt64SumParallel-4 182 11089863 ns/op 11857 B/op 388 allocs/op
BenchmarkFloat64SumParallel-4 160 8915878 ns/op 11386 B/op 383 allocs/op
PASS
ok go.opentelemetry.io/otel/sdk/metric/internal 15.222s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment