Skip to content

Instantly share code, notes, and snippets.

@irfansharif
Created June 9, 2022 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irfansharif/256a6864de0d4d2a797d5c815fcd679a to your computer and use it in GitHub Desktop.
Save irfansharif/256a6864de0d4d2a797d5c815fcd679a to your computer and use it in GitHub Desktop.
name old time/op new time/op delta
PingPongHog-10 352ns ±12% 366ns ±12% +3.96% (p=0.003 n=25+23)
CreateGoroutines-10 179ns ± 0% 182ns ± 1% +1.31% (p=0.000 n=24+25)
CreateGoroutinesParallel-10 28.9ns ± 5% 28.9ns ± 2% ~ (p=0.346 n=24+20)
CreateGoroutinesCapture-10 1.06µs ± 1% 1.06µs ± 1% ~ (p=0.611 n=25+23)
CreateGoroutinesSingle-10 237ns ± 6% 238ns ± 7% ~ (p=0.324 n=22+23)
Matmult-10 1.13ns ± 1% 1.13ns ± 1% ~ (p=0.569 n=23+25)
MakeChan/Byte-10 21.7ns ± 1% 21.7ns ± 1% ~ (p=0.901 n=25+24)
MakeChan/Int-10 25.3ns ± 1% 25.5ns ± 1% +0.79% (p=0.001 n=24+25)
MakeChan/Ptr-10 56.0ns ± 1% 56.2ns ± 0% +0.23% (p=0.011 n=25+23)
MakeChan/Struct/0-10 20.5ns ± 1% 20.6ns ± 1% +0.21% (p=0.048 n=24+25)
MakeChan/Struct/32-10 68.4ns ± 1% 69.0ns ± 1% +0.92% (p=0.000 n=24+22)
MakeChan/Struct/40-10 75.8ns ± 2% 76.1ns ± 2% ~ (p=0.165 n=25+25)
ChanNonblocking-10 0.31ns ± 1% 0.31ns ± 1% ~ (p=0.980 n=25+24)
ChanUncontended-10 311ns ± 1% 319ns ± 6% +2.59% (p=0.000 n=25+24)
ChanContended-10 6.64µs ± 1% 6.63µs ± 1% ~ (p=0.496 n=23+23)
ChanSync-10 140ns ± 1% 140ns ± 1% ~ (p=0.289 n=25+21)
ChanSyncWork-10 5.47µs ± 1% 5.44µs ± 1% -0.53% (p=0.000 n=25+25)
ChanProdCons0-10 283ns ± 3% 282ns ± 2% ~ (p=0.352 n=23+22)
ChanProdCons10-10 117ns ± 1% 116ns ± 1% -0.54% (p=0.000 n=24+23)
ChanProdCons100-10 76.0ns ± 1% 75.9ns ± 1% ~ (p=0.410 n=23+23)
ChanProdConsWork0-10 420ns ± 3% 433ns ±18% ~ (p=0.415 n=20+23)
ChanProdConsWork10-10 328ns ±10% 337ns ±11% ~ (p=0.137 n=23+25)
ChanProdConsWork100-10 318ns ±14% 311ns ±18% ~ (p=0.389 n=25+25)
ReceiveDataFromClosedChan-10 13.2ns ± 1% 13.2ns ± 1% ~ (p=0.058 n=25+25)
ChanCreation-10 41.5ns ± 5% 40.7ns ± 6% -1.97% (p=0.006 n=25+24)
ChanSem-10 64.4ns ± 1% 64.3ns ± 1% ~ (p=0.130 n=25+25)
ChanPopular-10 300µs ±11% 302µs ±11% ~ (p=0.521 n=23+22)
ChanClosed-10 0.38ns ± 1% 0.38ns ± 1% ~ (p=0.204 n=25+22)
SelectUncontended-10 5.63ns ± 1% 5.63ns ± 2% ~ (p=0.120 n=21+23)
SelectSyncContended-10 2.50µs ± 3% 2.48µs ± 1% -0.87% (p=0.000 n=19+25)
SelectAsyncContended-10 104ns ± 1% 105ns ± 1% +0.70% (p=0.000 n=24+22)
SelectNonblock-10 1.21ns ± 1% 1.21ns ± 1% ~ (p=0.454 n=22+25)
SelectProdCons-10 513ns ± 1% 508ns ± 2% -0.97% (p=0.034 n=23+25)
GoroutineSelect-10 4.80ms ±10% 4.50ms ± 5% -6.25% (p=0.000 n=25+24)
WakeupParallelSpinning/0s-10 10.7µs ± 0% 10.7µs ± 0% ~ (p=0.062 n=22+24)
WakeupParallelSpinning/1µs-10 14.8µs ± 0% 14.8µs ± 0% -0.25% (p=0.000 n=25+24)
WakeupParallelSpinning/2µs-10 18.7µs ± 0% 18.7µs ± 0% ~ (p=0.847 n=21+21)
WakeupParallelSpinning/5µs-10 30.8µs ± 0% 30.7µs ± 0% ~ (p=0.384 n=25+21)
WakeupParallelSpinning/10µs-10 50.3µs ± 0% 50.2µs ± 0% -0.10% (p=0.000 n=21+19)
WakeupParallelSpinning/20µs-10 91.2µs ± 0% 91.1µs ± 0% -0.07% (p=0.021 n=24+21)
WakeupParallelSpinning/50µs-10 175µs ± 0% 176µs ± 2% +0.24% (p=0.000 n=21+21)
WakeupParallelSpinning/100µs-10 273µs ± 0% 273µs ± 0% +0.13% (p=0.018 n=19+25)
name old alloc/op new alloc/op delta
CreateGoroutinesCapture-10 144B ± 0% 144B ± 0% ~ (all equal)
name old allocs/op new allocs/op delta
CreateGoroutinesCapture-10 5.00 ± 0% 5.00 ± 0% ~ (all equal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment