Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.

Conversation

@curtisy1
Copy link
Owner

Adds a benchmark accessing translations in 1m key value pair files. Results are mostly the same but could be a bit inaccurate since a few duplicates exist which resx might handle better than us

Method Mean Error StdDev
FirstEntryJson 64.97 ns 0.790 ns 0.700 ns
FirstEntryResx 65.11 ns 0.460 ns 0.408 ns
LastEntryJson 69.01 ns 1.451 ns 1.727 ns
LastEntryResx 63.58 ns 0.845 ns 0.790 ns
MiddleEntryJson 67.91 ns 0.567 ns 0.474 ns
MiddleEntryResx 67.24 ns 1.004 ns 0.838 ns
SameEntryTwiceJson 126.66 ns 1.731 ns 1.620 ns
SameEntryTwiceResx 138.74 ns 0.926 ns 0.821 ns

This now uses System.Text.Json to handle different file formats
This adds a benchmark with huge files (1m entries) and compares simple string
access using both JSON and RESX
@curtisy1 curtisy1 linked an issue Jan 21, 2023 that may be closed by this pull request
@curtisy1 curtisy1 merged commit ee7543e into develop Jan 21, 2023
@curtisy1 curtisy1 deleted the benchmark branch January 21, 2023 18:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add benchmark sample

2 participants