use of co.elastic.apm.impl.transaction.Transaction in project apm-agent-java by elastic.
the class ObjectPoolBenchmark method testRingBufferObjectPool.
@Benchmark
@Threads(8)
public Transaction testRingBufferObjectPool() {
Transaction transaction = ringBufferObjectPool.createInstance();
ringBufferObjectPool.recycle(transaction);
return transaction;
}
use of co.elastic.apm.impl.transaction.Transaction in project apm-agent-java by elastic.
the class ObjectPoolBenchmark method testBlockingQueueObjectPool.
// @Benchmark
@Threads(8)
public Transaction testBlockingQueueObjectPool() {
Transaction transaction = blockingQueueObjectPool.createInstance();
blockingQueueObjectPool.recycle(transaction);
return transaction;
}
Aggregations