(b *testing.B)
| 56 | } |
| 57 | |
| 58 | func BenchmarkExpvarAddParallel(b *testing.B) { |
| 59 | expvarMap := initExpvarBaseEquivalent() |
| 60 | res := expvarMap.Get("global").(*expvar.Map).Get("resource_utilization").(*expvar.Map).Get("error_count").(*expvar.Int) |
| 61 | b.ResetTimer() |
| 62 | b.RunParallel(func(pb *testing.PB) { |
| 63 | for pb.Next() { |
| 64 | res.Add(1) |
| 65 | } |
| 66 | }) |
| 67 | } |
| 68 | |
| 69 | func BenchmarkNewStatsMarshal(b *testing.B) { |
| 70 | sgwStats, err := NewSyncGatewayStats() |
nothing calls this directly
no test coverage detected