Skip to content

Upgrade maxminddb in benchmarks to 0.27.0 - #10

Merged
IncSW merged 1 commit into
IncSW:masterfrom
oschwald:greg/upgrade-maxminddb
Feb 20, 2026
Merged

Upgrade maxminddb in benchmarks to 0.27.0#10
IncSW merged 1 commit into
IncSW:masterfrom
oschwald:greg/upgrade-maxminddb

Conversation

@oschwald

@oschwald oschwald commented Nov 29, 2025

Copy link
Copy Markdown
Contributor

I was curious how a more modern maxminddb compared. On my machine:

test tests::bench_city             ... bench:         872.83 ns/iter (+/- 43.02)
test tests::bench_city_oschwald    ... bench:         748.95 ns/iter (+/- 16.51)
test tests::bench_country          ... bench:         468.07 ns/iter (+/- 22.21)
test tests::bench_country_oschwald ... bench:         399.45 ns/iter (+/- 11.90)

The newest version does have decode_path as well, which allows more selective decoding if you only need a couple of values and don't want to create your own model structs.

running 4 tests
test tests::bench_city             ... bench:         872.83 ns/iter (+/- 43.02)
test tests::bench_city_oschwald    ... bench:         748.95 ns/iter (+/- 16.51)
test tests::bench_country          ... bench:         468.07 ns/iter (+/- 22.21)
test tests::bench_country_oschwald ... bench:         399.45 ns/iter (+/- 11.90)
@oschwald
oschwald force-pushed the greg/upgrade-maxminddb branch from 8c4706a to 6b040bc Compare February 14, 2026 22:12
@IncSW
IncSW merged commit eb3ecfc into IncSW:master Feb 20, 2026
19 checks passed
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.

2 participants