package aproxy_test import ( "context" "fmt" "keybase/sketchground/aproxygo/aproxy" "net/http" "testing" ) func BenchmarkTracker(b *testing.B) { ctx := context.Background() t := aproxy.NewTracker() req, err := http.NewRequest("GET", "http://localhost/", nil) if err != nil { b.Fatal(err) } for n := 0; n < 500000; n++ { t.Track(ctx, req) } fmt.Println("Shutting down") t.Shutdown() }