Skip to content

Commit

Permalink
test: Fixed explicitDecodeMetadata benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Ruaux committed Jan 26, 2023
1 parent 11363ae commit 399ab38
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.redis.sidecar;

import java.sql.SQLException;

import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
Expand All @@ -14,8 +16,8 @@ public void explicitDecode(CodecExecutionPlan plan) {

@Benchmark
@BenchmarkMode(Mode.AverageTime)
public void explicitDecodeMetadata(CodecExecutionPlan plan) {
plan.getExplicitCodec().decodeValue(plan.getExplicitByteBuffer());
public void explicitDecodeMetadata(CodecExecutionPlan plan) throws SQLException {
plan.getExplicitCodec().decodeMetaData(plan.getExplicitByteBuffer());
}

@Benchmark
Expand Down

0 comments on commit 399ab38

Please sign in to comment.