JMH Annotations needs to be generated for running JMH tests. This generation is hooked into benchmark
maven profile. Run following command to generate annotations -
./mvnw clean process-test-sources -P benchmark
JMH Tests do not have any assertions, these were used to manually run and see the performance.
Benchmark Mode Cnt Score Error Units InMemoryTransactionStoreTest.getTraceContext thrpt 6 26907.709 ± 2006.064 ops/ms InMemoryTransactionStoreTest.getTraceContextComponent thrpt 6 12638.620 ± 451.721 ops/ms InMemoryTransactionStoreTest.getTransactionContext thrpt 6 180563.877 ± 569.346 ops/ms
After removing component span lookup Benchmark Mode Cnt Score Error Units InMemoryTransactionStoreTest.getTraceContext thrpt 6 47940.917 ± 896.087 ops/ms InMemoryTransactionStoreTest.getTraceContextComponent thrpt 6 27392.840 ± 430.036 ops/ms InMemoryTransactionStoreTest.getTransactionContext thrpt 6 179415.743 ± 770.880 ops/ms
Benchmark Mode Cnt Score Error Units InMemoryTransactionStoreTest.getTraceContext thrpt 6 50563.152 ± 793.521 ops/ms InMemoryTransactionStoreTest.getTraceContextComponent thrpt 6 13665.884 ± 528.655 ops/ms InMemoryTransactionStoreTest.getTransactionComponentContext thrpt 6 23648.576 ± 276.160 ops/ms InMemoryTransactionStoreTest.getTransactionContext thrpt 6 180368.524 ± 1052.989 ops/ms
Benchmark Mode Cnt Score Error Units ProcessorTracingInterceptorTest.interceptBefore thrpt 2 6163.569 ops/ms