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

Benchmarks for reading/writing sdp.zip #111

Open
Tracked by #96
vasdommes opened this issue Aug 11, 2023 · 0 comments
Open
Tracked by #96

Benchmarks for reading/writing sdp.zip #111

vasdommes opened this issue Aug 11, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@vasdommes
Copy link
Collaborator

vasdommes commented Aug 11, 2023

@vasdommes vasdommes self-assigned this Aug 17, 2023
vasdommes added a commit to vasdommes/sdpb that referenced this issue Aug 17, 2023
…bin and .json

On my laptop, binary format is ~20x-30x faster than JSON for combined write+read to an in-memory stringstream.
If disk IO is a bottleneck (which sounds more realistic), one can expect more moderate speedup, ~2.4x because binary format is more compact than JSON.

This is a part of davidsd#111 Benchmarks for reading/writing sdp.zip.
vasdommes added a commit to vasdommes/sdpb that referenced this issue Aug 17, 2023
…bin and .json

You can run benchmark as
./build/unit_tests [!benchmark] --benchmark-samples 10 --benchmark-no-analysis

On my laptop, binary format is ~20x-30x faster than JSON for combined write+read to an in-memory stringstream.
If disk IO is a bottleneck (which sounds more realistic), one can expect more moderate speedup, ~2.4x because binary format is more compact than JSON.

This is a part of davidsd#111 Benchmarks for reading/writing sdp.zip.
@vasdommes vasdommes added this to the Backlog milestone Nov 14, 2023
@vasdommes vasdommes removed the backlog label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant