Class MinBytesPerElementTest

java.lang.Object
org.apache.avro.perf.test.generic.MinBytesPerElementTest
Direct Known Subclasses:
MinBytesPerElementTest_jmhType_B1

public class MinBytesPerElementTest extends Object
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 Details

    • schemaType

      public String 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

      public void setup() throws IOException
      Throws:
      IOException
    • decodeArrayOfComplexRecords

      public void decodeArrayOfComplexRecords(org.openjdk.jmh.infra.Blackhole bh) throws IOException
      Throws:
      IOException
    • decodeMapOfComplexRecords

      public void decodeMapOfComplexRecords(org.openjdk.jmh.infra.Blackhole bh) throws IOException
      Throws:
      IOException