Skip to content

Commit

Permalink
Merge branch 'master' into 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
spacelan committed Dec 17, 2019
2 parents e5b43c2 + 7fd3f70 commit 6f9316f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions java/bench/src/main/java/org/sample/MyBenchmark.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,25 @@ public void setupTrial() throws Exception {
@TearDown(Level.Trial)
public void tearDownTrial() throws Exception {
for (int i = 0; i < 10; i++) {
V8.Check("requestEnd", "{}".getBytes(), 2, context, -1, 100);
V8.Check("requestEnd", "{}".getBytes(), 2, context, 100);
}
}

@Setup(Level.Iteration)
public void setupIteration() throws Exception {
context = new Context();
V8.Check("request", "{}".getBytes(), 2, context, -1, 100);
V8.Check("request", "{}".getBytes(), 2, context, 100);
}

@TearDown(Level.Iteration)
public void tearDownIteration() throws Exception {
V8.Check("requestEnd", "{}".getBytes(), 2, context, -1, 100);
V8.Check("requestEnd", "{}".getBytes(), 2, context, 100);
}

@Benchmark
public void testCheck() {
String type = Params.GetType();
byte[] params = Params.GetParams(type);
V8.Check(type, params, 0, context, -1, 1000);
V8.Check(type, params, 0, context, 1000);
}
}

0 comments on commit 6f9316f

Please sign in to comment.