Skip to content

Instantly share code, notes, and snippets.

@bfallik
Created April 9, 2015 04:12
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 bfallik/abca7a24dcafe256a733 to your computer and use it in GitHub Desktop.
Save bfallik/abca7a24dcafe256a733 to your computer and use it in GitHub Desktop.
blog position gctrace
$ GODEBUG=gctrace=1 go test -v -bench=Position_1e6 -benchmem blog
gc1(1): 0+0+113+0 us, 0 -> 0 MB, 21 (21-0) objects, 2 goroutines, 16/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc2(1): 0+0+77+0 us, 0 -> 0 MB, 41 (42-1) objects, 3 goroutines, 20/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc3(1): 0+0+75+0 us, 0 -> 0 MB, 143 (161-18) objects, 4 goroutines, 29/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc4(1): 0+0+90+0 us, 0 -> 0 MB, 218 (272-54) objects, 4 goroutines, 35/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc5(1): 0+0+106+0 us, 0 -> 0 MB, 437 (543-106) objects, 5 goroutines, 38/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc6(1): 0+0+135+0 us, 0 -> 0 MB, 620 (940-320) objects, 5 goroutines, 45/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc7(1): 0+0+209+0 us, 0 -> 0 MB, 1981 (2805-824) objects, 6 goroutines, 61/1/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc8(1): 0+0+260+0 us, 0 -> 0 MB, 2975 (4840-1865) objects, 6 goroutines, 72/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc9(1): 0+0+252+0 us, 0 -> 0 MB, 4315 (7109-2794) objects, 6 goroutines, 94/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc10(1): 0+0+255+0 us, 0 -> 0 MB, 4294 (9012-4718) objects, 6 goroutines, 109/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc11(1): 0+0+276+0 us, 0 -> 0 MB, 4814 (11373-6559) objects, 6 goroutines, 114/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc12(1): 0+0+263+0 us, 0 -> 0 MB, 5093 (13788-8695) objects, 6 goroutines, 118/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc13(1): 0+3+332+0 us, 0 -> 0 MB, 4938 (16856-11918) objects, 5 goroutines, 120/1/7 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc14(1): 0+3+271+0 us, 0 -> 0 MB, 4885 (19678-14793) objects, 5 goroutines, 120/0/4 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc15(1): 0+0+302+0 us, 0 -> 0 MB, 4323 (21722-17399) objects, 5 goroutines, 120/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc16(1): 0+0+302+0 us, 0 -> 0 MB, 5767 (24716-18949) objects, 5 goroutines, 124/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc17(1): 0+0+299+0 us, 0 -> 0 MB, 5875 (27737-21862) objects, 5 goroutines, 126/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc18(1): 0+1+365+0 us, 0 -> 0 MB, 6276 (31270-24994) objects, 5 goroutines, 127/0/3 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc19(1): 0+0+332+0 us, 0 -> 0 MB, 6897 (34758-27861) objects, 5 goroutines, 137/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc20(1): 1+2+354+0 us, 0 -> 0 MB, 7180 (38645-31465) objects, 5 goroutines, 138/0/2 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc21(1): 1+0+406+0 us, 0 -> 0 MB, 7743 (42854-35111) objects, 5 goroutines, 142/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc1(1): 0+0+78+0 us, 0 -> 0 MB, 21 (21-0) objects, 2 goroutines, 16/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc2(1): 0+0+81+0 us, 0 -> 0 MB, 50 (51-1) objects, 3 goroutines, 21/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
testing: warning: no tests to run
PASS
gc3(1): 0+0+88+0 us, 0 -> 0 MB, 186 (219-33) objects, 4 goroutines, 28/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
Benchmark_Position_1e6 gc4(1): 0+0+90+0 us, 0 -> 0 MB, 157 (245-88) objects, 5 goroutines, 28/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc5(1): 0+0+109253+1 us, 0 -> 106 MB, 150 (246-96) objects, 5 goroutines, 29/0/22 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc6(1): 1+0+187460+1 us, 106 -> 264 MB, 480952 (907032-426080) objects, 5 goroutines, 2834/1/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc7(1): 1+722+57059+1 us, 222 -> 225 MB, 531884 (1059356-527472) objects, 5 goroutines, 2844/5/1671 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc8(1): 2+1+147244+1 us, 106 -> 264 MB, 480821 (1966011-1485190) objects, 5 goroutines, 2844/0/2133 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc9(1): 1+1+55568+0 us, 222 -> 385 MB, 1091010 (3177496-2086486) objects, 5 goroutines, 5244/5/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc10(1): 1+1+148287+1 us, 106 -> 264 MB, 481184 (4084514-3603330) objects, 5 goroutines, 5244/0/5238 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc11(1): 1+0+114009+1 us, 222 -> 463 MB, 1331518 (5749321-4417803) objects, 5 goroutines, 6653/5/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
3 453504711 ns/op 167631477 B/op 1059097 allocs/op
ok blog 3.235s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment