Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Before [b238e9cf4c3d]
BenchmarkChanUnbuffered 10 180,710,340 ns/op 1,167,201 B/op 7 allocs/op
BenchmarkBuffered8 10 121,106,930 ns/op 1,167,265 B/op 7 allocs/op
BenchmarkBuffered16 10 105,806,060 ns/op 1,167,340 B/op 7 allocs/op
BenchmarkBuffered32 20 91,355,225 ns/op 583,933 B/op 5 allocs/op
BenchmarkBuffered64 20 85,954,915 ns/op 584,224 B/op 6 allocs/op
BenchmarkSlice 500 4,396,251 ns/op 8,026,925 B/op 1 allocs/op
BenchmarkCallback 100 15,860,907 ns/op 116,705 B/op 0 allocs/op
BenchmarkBlockCallback8 200 8,610,492 ns/op 58,416 B/op 1 allocs/op
BenchmarkBlockCallback16 200 8,360,478 ns/op 58,480 B/op 1 allocs/op
BenchmarkBlockCallback32 200 8,510,486 ns/op 58,608 B/op 1 allocs/op
BenchmarkBlockCallback64 200 8,740,500 ns/op 58,864 B/op 1 allocs/op
BenchmarkChanUnbuffered-2 1 1,312,075,100 ns/op 11,675,696 B/op 50 allocs/op
BenchmarkBuffered8-2 1 2,294,131,200 ns/op 11,671,072 B/op 43 allocs/op
BenchmarkBuffered16-2 1 2,078,118,800 ns/op 11,670,960 B/op 43 allocs/op
BenchmarkBuffered32-2 1 2,909,166,400 ns/op 11,671,360 B/op 44 allocs/op
BenchmarkBuffered64-2 1 3,263,186,600 ns/op 11,671,632 B/op 44 allocs/op
BenchmarkSlice-2 500 4,562,261 ns/op 8,026,925 B/op 1 allocs/op
BenchmarkCallback-2 100 15,860,907 ns/op 116,705 B/op 0 allocs/op
BenchmarkBlockCallback8-2 200 8,610,492 ns/op 58,416 B/op 1 allocs/op
BenchmarkBlockCallback16-2 200 8,415,481 ns/op 58,480 B/op 1 allocs/op
BenchmarkBlockCallback32-2 200 8,525,487 ns/op 58,608 B/op 1 allocs/op
BenchmarkBlockCallback64-2 200 8,735,499 ns/op 58,864 B/op 1 allocs/op
After CL [b238e9cf4c3d + 74180043]
BenchmarkChanUnbuffered 20 78,004,460 ns/op 583,672 B/op 5 allocs/op
BenchmarkBuffered8 10 126,307,230 ns/op 1,167,265 B/op 7 allocs/op
BenchmarkBuffered16 10 109,206,240 ns/op 1,167,340 B/op 7 allocs/op
BenchmarkBuffered32 20 95,705,475 ns/op 583,933 B/op 5 allocs/op
BenchmarkBuffered64 20 91,255,220 ns/op 584,224 B/op 6 allocs/op
BenchmarkSlice 500 4,516,258 ns/op 8,026,925 B/op 1 allocs/op
BenchmarkCallback 100 15,920,911 ns/op 116,705 B/op 0 allocs/op
BenchmarkBlockCallback8 200 8,685,497 ns/op 58,416 B/op 1 allocs/op
BenchmarkBlockCallback16 200 8,900,509 ns/op 58,480 B/op 1 allocs/op
BenchmarkBlockCallback32 200 8,555,489 ns/op 58,608 B/op 1 allocs/op
BenchmarkBlockCallback64 200 8,835,505 ns/op 58,864 B/op 1 allocs/op
BenchmarkChanUnbuffered-2 20 77,804,450 ns/op 583,672 B/op 5 allocs/op
BenchmarkBuffered8-2 1 1,371,078,400 ns/op 11,673,728 B/op 46 allocs/op
BenchmarkBuffered16-2 1 1,395,079,700 ns/op 11,671,280 B/op 44 allocs/op
BenchmarkBuffered32-2 1 2,551,145,900 ns/op 11,671,072 B/op 43 allocs/op
BenchmarkBuffered64-2 1 3,529,201,900 ns/op 11,671,664 B/op 44 allocs/op
BenchmarkSlice-2 500 4,578,261 ns/op 8,026,925 B/op 1 allocs/op
BenchmarkCallback-2 100 16,060,919 ns/op 116,705 B/op 0 allocs/op
BenchmarkBlockCallback8-2 200 8,700,497 ns/op 58,416 B/op 1 allocs/op
BenchmarkBlockCallback16-2 200 8,800,503 ns/op 58,480 B/op 1 allocs/op
Tip [920cde0a8b2d]
BenchmarkChanUnbuffered 3 337,352,633 ns/op 3,890,378 B/op 17 allocs/op
BenchmarkBuffered8 10 172,109,840 ns/op 1,167,278 B/op 8 allocs/op
BenchmarkBuffered16 10 136,707,820 ns/op 1,167,342 B/op 8 allocs/op
BenchmarkBuffered32 10 120,106,870 ns/op 1,167,470 B/op 8 allocs/op
BenchmarkBuffered64 10 111,806,400 ns/op 1,167,758 B/op 8 allocs/op
BenchmarkSlice 300 4,530,259 ns/op 8,042,485 B/op 1 allocs/op
BenchmarkCallback 200 6,130,350 ns/op 58,352 B/op 0 allocs/op
BenchmarkBlockCallback8 200 7,855,449 ns/op 58,416 B/op 1 allocs/op
BenchmarkBlockCallback16 200 7,690,440 ns/op 58,480 B/op 1 allocs/op
BenchmarkBlockCallback32 200 7,695,440 ns/op 58,608 B/op 1 allocs/op
BenchmarkBlockCallback64 200 7,655,438 ns/op 58,864 B/op 1 allocs/op
BenchmarkChanUnbuffered-2 1 4,193,239,800 ns/op 11,673,504 B/op 49 allocs/op
BenchmarkBuffered8-2 1 4,967,284,100 ns/op 11,670,912 B/op 44 allocs/op
BenchmarkBuffered16-2 1 4,615,264,000 ns/op 11,670,976 B/op 44 allocs/op
BenchmarkBuffered32-2 1 4,802,274,700 ns/op 11,671,392 B/op 45 allocs/op
BenchmarkBuffered64-2 1 5,188,296,700 ns/op 11,671,392 B/op 44 allocs/op
BenchmarkSlice-2 300 4,736,937 ns/op 8,042,485 B/op 1 allocs/op
BenchmarkCallback-2 200 6,160,352 ns/op 58,352 B/op 0 allocs/op
BenchmarkBlockCallback8-2 200 7,845,449 ns/op 58,416 B/op 1 allocs/op
BenchmarkBlockCallback16-2 200 7,795,445 ns/op 58,480 B/op 1 allocs/op
BenchmarkBlockCallback32-2 200 7,735,442 ns/op 58,608 B/op 1 allocs/op
BenchmarkBlockCallback64-2 200 7,695,440 ns/op 58,864 B/op 1 allocs/op
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment