Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding benchmark tests over some popular queries #1755

Merged
merged 1 commit into from
Nov 17, 2022
Merged

Conversation

abhinavdangeti
Copy link
Member

@abhinavdangeti abhinavdangeti commented Nov 16, 2022

Here're results on my computer:
```
[12:52:04] AD: ~/Documents/go/src/github.com/blevesearch/bleve $ go test -run=BenchmarkQuery -bench=BenchmarkQuery -v
goos: darwin
goarch: amd64
pkg: github.com/blevesearch/bleve/v2
cpu: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
BenchmarkQueryTerm
BenchmarkQueryTerm-12                     181676              6309 ns/op            4130 B/op         59 allocs/op
BenchmarkQueryTermRange
BenchmarkQueryTermRange-12                 72004             16440 ns/op            7286 B/op         94 allocs/op
BenchmarkQueryWildcard
BenchmarkQueryWildcard-12                   4686            251194 ns/op          124294 B/op        291 allocs/op
BenchmarkQueryNumericRange
BenchmarkQueryNumericRange-12              59023             20151 ns/op           12760 B/op        155 allocs/op
BenchmarkQueryDateRange
BenchmarkQueryDateRange-12                 34382             33578 ns/op           18647 B/op        256 allocs/op
BenchmarkQueryGeoDistance
BenchmarkQueryGeoDistance-12               24669             41800 ns/op           26878 B/op        279 allocs/op
BenchmarkQueryGeoBoundingBox
BenchmarkQueryGeoBoundingBox-12            14122             84857 ns/op           47915 B/op        352 allocs/op
PASS
ok      github.com/blevesearch/bleve/v2 507.927s

```

Here're results on my computer:
```
[12:52:04] AD: ~/Documents/go/src/github.com/blevesearch/bleve $ go test -run=BenchmarkQuery -bench=BenchmarkQuery -v
goos: darwin
goarch: amd64
pkg: github.com/blevesearch/bleve/v2
cpu: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
BenchmarkQueryTerm
BenchmarkQueryTerm-12                     181676              6309 ns/op            4130 B/op         59 allocs/op
BenchmarkQueryTermRange
BenchmarkQueryTermRange-12                 72004             16440 ns/op            7286 B/op         94 allocs/op
BenchmarkQueryWildcard
BenchmarkQueryWildcard-12                   4686            251194 ns/op          124294 B/op        291 allocs/op
BenchmarkQueryNumericRange
BenchmarkQueryNumericRange-12              59023             20151 ns/op           12760 B/op        155 allocs/op
BenchmarkQueryDateRange
BenchmarkQueryDateRange-12                 34382             33578 ns/op           18647 B/op        256 allocs/op
BenchmarkQueryGeoDistance
BenchmarkQueryGeoDistance-12               24669             41800 ns/op           26878 B/op        279 allocs/op
BenchmarkQueryGeoBoundingBox
BenchmarkQueryGeoBoundingBox-12            14122             84857 ns/op           47915 B/op        352 allocs/op
PASS
ok      github.com/blevesearch/bleve/v2 507.927s

```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant