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)
| 27 | |
| 28 | // reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference |
| 29 | func BenchmarkGjsonMedium(b *testing.B) { |
| 30 | for i := 0; i < b.N; i++ { |
| 31 | gjson.GetBytes(mediumFixture, "person.name.fullName") |
| 32 | gjson.GetBytes(mediumFixture, "person.github.followers").Int() |
| 33 | gjson.GetBytes(mediumFixture, "company") |
| 34 | |
| 35 | gjson.GetBytes(mediumFixture, "person.gravatar.avatars").ForEach(func(_, value gjson.Result) bool { |
| 36 | value.Get("url") |
| 37 | return true |
| 38 | }) |
| 39 | |
| 40 | nothing() |
| 41 | } |
| 42 | } |
| 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) { |