Skip to content

Commit

Permalink
Re-scaled Where benchmarks after JVM 21 and recent improvements (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanbrub authored Nov 19, 2023
1 parent 027a440 commit de034f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ public void setup() {

@Test
public void whereIn1Filter() {
runner.setScaleFactors(300, 20);
runner.setScaleFactors(210, 150);
var q = "source.where_in(where_filter, cols=['str250 = sPrefix'])";
runner.test("WhereIn- 1 Filter Col", q, "str250", "int250");
}

@Test
public void whereIn2Filter() {
runner.setScaleFactors(40, 5);
runner.setScaleFactors(85, 60);
var q = "source.where_in(where_filter, cols=['str250 = sPrefix', 'str640 = sSuffix'])";
runner.test("WhereIn- 2 Filter Cols", q, "str250", "str640", "int250");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ public void setup() {

@Test
public void whereNotIn1Filter() {
runner.setScaleFactors(80, 10);
runner.setScaleFactors(90, 55);
var q = "source.where_not_in(where_filter, cols=['str250 = sPrefix'])";
runner.test("WhereNotIn- 1 Filter Col", q, "str250", "int250");
}

@Test
public void whereNotIn2Filter() {
runner.setScaleFactors(50, 5);
runner.setScaleFactors(70, 60);
var q = "source.where_not_in(where_filter, cols=['str250 = sPrefix', 'str640 = sSuffix'])";
runner.test("WhereNotIn- 2 Filter Cols", q, "str250", "str640", "int250");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void setup() {

@Test
public void where1Filter() {
runner.setScaleFactors(300, 15);
runner.setScaleFactors(260, 170);
var q = """
source.where(filters=["str250 = '250'"]);
""";
Expand All @@ -27,7 +27,7 @@ public void where1Filter() {

@Test
public void where2Filters() {
runner.setScaleFactors(200, 20);
runner.setScaleFactors(210, 170);
var q = """
source.where(filters=["str250 = '250'", "str640 = '640'"]);
""";
Expand All @@ -36,7 +36,7 @@ public void where2Filters() {

@Test
public void whereFilterInList() {
runner.setScaleFactors(200, 20);
runner.setScaleFactors(190, 160);
var q = """
source.where(filters=["str250 in '250', '1', '249', '2', '248'"]);
""";
Expand All @@ -45,7 +45,7 @@ public void whereFilterInList() {

@Test
public void whereOneOf2Filters() {
runner.setScaleFactors(100, 7);
runner.setScaleFactors(80, 75);
var q = """
source.where_one_of(filters=["str250 = '250'", "str640 = '640'"]);
""";
Expand Down

0 comments on commit de034f0

Please sign in to comment.