Class MinBytesPerElementTest
java.lang.Object
org.apache.avro.perf.test.generic.MinBytesPerElementTest
- Direct Known Subclasses:
MinBytesPerElementTest_jmhType_B1
Benchmarks to measure the overhead of
minBytesPerElement computation
during array/map decoding via GenericDatumReader. Tests complex,
wide, and recursive schema structures to verify that the per-block schema
traversal cost is acceptable.-
Field Summary
FieldsModifier and TypeFieldDescriptionSchema complexity levels to benchmark: - WIDE: Record with 50 fields of various types - DEEP: Deeply nested records (10 levels) - RECURSIVE: Self-referencing record (linked-list style) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecodeArrayOfComplexRecords(org.openjdk.jmh.infra.Blackhole bh) voiddecodeMapOfComplexRecords(org.openjdk.jmh.infra.Blackhole bh) voidsetup()
-
Field Details
-
schemaType
Schema complexity levels to benchmark: - WIDE: Record with 50 fields of various types - DEEP: Deeply nested records (10 levels) - RECURSIVE: Self-referencing record (linked-list style)
-
-
Constructor Details
-
MinBytesPerElementTest
public MinBytesPerElementTest()
-
-
Method Details
-
setup
- Throws:
IOException
-
decodeArrayOfComplexRecords
- Throws:
IOException
-
decodeMapOfComplexRecords
- Throws:
IOException
-