Skip to content

Benchmark number for JSON.parse is incorrect#139

Merged
mourner merged 2 commits intomapbox:mainfrom
Auspicus:patch-1
Mar 30, 2026
Merged

Benchmark number for JSON.parse is incorrect#139
mourner merged 2 commits intomapbox:mainfrom
Auspicus:patch-1

Conversation

@Auspicus
Copy link
Copy Markdown
Contributor

@Auspicus Auspicus commented Feb 12, 2025

As far as I understand, the benchmark math is:
pbf decode = 22.6MB/.387s = ~57MB/s
JSON parse = 77.5MB/1.54s = ~50MB/s (JSON) OR 22.6MB/1.54s = ~15MB/s (equiv. Protobuf)

I'm not sure how the 125MB/s number was arrived at.

Copy link
Copy Markdown
Member

@mourner mourner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think that was a typo. Nice catch!

@mourner mourner merged commit e0c3bb1 into mapbox:main Mar 30, 2026
1 check 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