Skip to content

Batson#136

Open
samuelcolvin wants to merge 17 commits into
mainfrom
batson
Open

Batson#136
samuelcolvin wants to merge 17 commits into
mainfrom
batson

Conversation

@samuelcolvin

Copy link
Copy Markdown
Member

Adding "batson" binary alternative to JSON code crate.

From the README:

Binary Alternative To (J)SON. Designed to be very fast to query.

Inspired by Postgres' JSONB type and Snowflake's VARIANT type.

For a relatively small JSON document (3KB), batson is 14 to 126x faster than Jiter, and 106 to 588x faster than Serde.

test medium_get_str_found_batson   ... bench:          51 ns/iter (+/- 1)
test medium_get_str_found_jiter    ... bench:         755 ns/iter (+/- 66)
test medium_get_str_found_serde    ... bench:       5,420 ns/iter (+/- 93)
test medium_get_str_missing_batson ... bench:           9 ns/iter (+/- 0)
test medium_get_str_missing_jiter  ... bench:       1,135 ns/iter (+/- 46)
test medium_get_str_missing_serde  ... bench:       5,292 ns/iter (+/- 324)

Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
@codspeed-hq

codspeed-hq Bot commented Sep 12, 2024

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #136 will improve performances by 11.69%

Comparing batson (6513df5) with main (ae5fc7d)

Summary

⚡ 1 improvements
✅ 72 untouched benchmarks

Benchmarks breakdown

Benchmark main batson Change
sentence_jiter_iter 7.8 µs 6.9 µs +11.69%

Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
Comment thread crates/batson/README.md
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