New VectorAPI benchmark to accelerate JsonParsing through fast table lookup using Vector.selectFrom API #105
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Benchmark performs fast table lookup to match following JSON structural code points to accelerate JSON parsing scheme described in [1] using two vector selectFrom API[2] added in JDK-24[3]
, -> 0x2c
: -> 0x3a
[ -> 0x5b
] -> 0x5d
{ -> 0x7b
} -> 0x7d
tab, line feed, carriage return -> 0x9, 0xa, 0xd
space -> 0x20
Following are the perfromance numbers on Ryzen 7 7840HS - AVX512 system.
[1] Parsing Gigabytes of JSON per Second : https://arxiv.org/abs/1902.08318
[2] Vector.selectFrom
[3] JEP 489: Vector API (Ninth Incubator): https://openjdk.org/jeps/489