reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
(b *testing.B)
| 43 | |
| 44 | // reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference |
| 45 | func BenchmarkGjsonLarge(b *testing.B) { |
| 46 | for i := 0; i < b.N; i++ { |
| 47 | gjson.GetBytes(largeFixture, "users").ForEach(func(_, value gjson.Result) bool { |
| 48 | value.Get("username") |
| 49 | return true |
| 50 | }) |
| 51 | |
| 52 | gjson.GetBytes(largeFixture, "topics.topics").ForEach(func(_, value gjson.Result) bool { |
| 53 | value.Get("id").Int() |
| 54 | value.Get("slug") |
| 55 | return true |
| 56 | }) |
| 57 | |
| 58 | nothing() |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | /* |
| 63 | github.com/bytedance/sonic |