Skip to content

Enhanced JsonInputFormatBenchmark.#16188

Closed
gianm wants to merge 1 commit intoapache:masterfrom
gianm:jif-benchmark
Closed

Enhanced JsonInputFormatBenchmark.#16188
gianm wants to merge 1 commit intoapache:masterfrom
gianm:jif-benchmark

Conversation

@gianm
Copy link
Contributor

@gianm gianm commented Mar 22, 2024

Renames JsonLineReaderBenchmark to JsonInputFormatBenchmark, and enhances it to test various readers (JsonReader, JsonLineReader, JsonNodeReader) as well as to test with/without field discovery.

Results for parseAndRead:

Benchmark                              (discovery)  (readerTypeString)  Mode  Cnt     Score    Error  Units
JsonInputFormatBenchmark.parseAndRead        false              reader  avgt   10  3388.676 ± 45.400  ns/op
JsonInputFormatBenchmark.parseAndRead        false         node_reader  avgt   10  3442.947 ± 27.088  ns/op
JsonInputFormatBenchmark.parseAndRead        false         line_reader  avgt   10  2929.359 ± 52.594  ns/op
JsonInputFormatBenchmark.parseAndRead         true              reader  avgt   10  3622.374 ± 73.724  ns/op
JsonInputFormatBenchmark.parseAndRead         true         node_reader  avgt   10  3613.759 ± 26.548  ns/op
JsonInputFormatBenchmark.parseAndRead         true         line_reader  avgt   10  3009.840 ± 20.577  ns/op

Renames JsonLineReaderBenchmark to JsonInputFormatBenchmark, and enhances it to
test various readers (JsonReader, JsonLineReader, JsonNodeReader) as well as
to test with/without field discovery.
@gianm
Copy link
Contributor Author

gianm commented Mar 22, 2024

This benchmark is also present in #15693.

@gianm
Copy link
Contributor Author

gianm commented Mar 26, 2024

No longer relevant since #15693 was merged.

@gianm gianm closed this Mar 26, 2024
@gianm gianm deleted the jif-benchmark branch March 28, 2024 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant