Skip to content

Commit

Permalink
Split benchmarks in single tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonylouisbsb committed Aug 31, 2021
1 parent 2c1b150 commit 84fbbf2
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions sabot/kernel/src/test/java/com/dremio/sabot/TestGandivaPerf.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,27 +237,33 @@ public void testProjectExtractDate4() throws Exception {
}

@Test
public void testProjectTanSinh() throws Exception {
int delta = compareProject(TpchTable.CUSTOMER, 4, "tan(c_acctbal)");
public void testProjectSinh() throws Exception {
int delta = compareProject(TpchTable.CUSTOMER, 6, "sinh(c_acctbal)");
Assert.assertTrue(delta > 0);
delta = compareProject(TpchTable.CUSTOMER, 4, "sinh(c_acctbal)");
}

@Test
public void testProjectTan() throws Exception {
int delta = compareProject(TpchTable.CUSTOMER, 6, "tan(c_acctbal)");
Assert.assertTrue(delta > 0);
}

@Test
public void testProjectCoshRadians() throws Exception {
int delta = compareProject(TpchTable.CUSTOMER, 4, "cosh(c_acctbal)");
public void testProjectCosh() throws Exception {
int delta = compareProject(TpchTable.CUSTOMER, 6, "cosh(c_acctbal)");
Assert.assertTrue(delta > 0);
delta = compareProject(TpchTable.CUSTOMER, 4, "radians(c_acctbal)");
}

@Test
public void testProjectCos() throws Exception {
int delta = compareProject(TpchTable.CUSTOMER, 6, "cos(c_acctbal)");
Assert.assertTrue(delta > 0);
}

@Test
public void testProjectSinCos() throws Exception {
public void testProjectSin() throws Exception {
int delta = compareProject(TpchTable.CUSTOMER, 6, "sin(c_acctbal)");
Assert.assertTrue(delta > 0);
delta = compareProject(TpchTable.CUSTOMER, 6, "cos(c_acctbal)");
Assert.assertTrue(delta > 0);
}

@Test
Expand Down

0 comments on commit 84fbbf2

Please sign in to comment.