@@ -23,21 +23,43 @@ public class ExpressionTest {
2323 private static final String TEST_NAME = "expression" ;
2424 private static final String TEST_NAME1 = TEST_NAME +"1" ;
2525 private static final String TEST_NAME2 = TEST_NAME +"2" ;
26+ private static final String TEST_NAME3 = TEST_NAME +"3" ;
27+ private static final String TEST_NAME4 = TEST_NAME +"4" ;
28+ private static final String TEST_NAME5 = TEST_NAME +"5" ;
2629
2730 private static final String TEST_DIR = "./src/test/scripts/performance/primitives/" ;
2831
2932 private final static double sparsity1 = 0.9 ;
3033 private final static double sparsity2 = 0.1 ;
3134 private final static double eps = 1e-8 ;
32- private int rows = 2000 ;
33- private int cols = 10000 ;
34- double [] sparsities = new double [] {1 , 0.3333333 , 0.1111111 , 0.0333333 , 0.0111111 , 0.0033333 , 0.0011111 , 0.0003333 , 0.0001111 , 0.0000333 , 0.0000111 , 0.0000033 , 0.0000011 , 0.0000003 , 0.0000001 };
35- int warmupRuns = 100 ;
36- int repetitions = 2500 ;
35+ private int rows = 100 ;
36+ private int cols = 100 ;
37+ // double[] sparsities = new double[] {1, 0.3333333, 0.1111111, 0.0333333, 0.0111111, 0.0033333, 0.0011111, 0.0003333, 0.0001111, 0.0000333, 0.0000111, 0.0000033, 0.0000011, 0.0000003, 0.0000001};
38+ double [] sparsities = new double [] {0.01 , 0.3333 };
39+ int warmupRuns = 10 ;
40+ int repetitions = 10 ;
3741
3842 public static void main (String [] args ) {
43+ System .out .println ("First------------------------------------------------" );
44+ new ExpressionTest ().runSparseBenchmark (TEST_NAME1 );
45+ System .out .println ("Second------------------------------------------------" );
46+ new ExpressionTest ().runSparseBenchmark (TEST_NAME2 );
47+ System .out .println ("Third------------------------------------------------" );
48+ new ExpressionTest ().runSparseBenchmark (TEST_NAME3 );
49+ System .out .println ("Fourth------------------------------------------------" );
50+ new ExpressionTest ().runSparseBenchmark (TEST_NAME4 );
51+ System .out .println ("Fifth------------------------------------------------" );
52+ new ExpressionTest ().runSparseBenchmark (TEST_NAME5 );
53+ // System.out.println("First------------------------------------------------");
3954// new ExpressionTest().runSparseBenchmark(TEST_NAME1);
40- new ExpressionTest ().runDenseBenchmark (TEST_NAME1 );
55+ // System.out.println("Second------------------------------------------------");
56+ // new ExpressionTest().runSparseBenchmark(TEST_NAME2);
57+ // System.out.println("Third------------------------------------------------");
58+ // new ExpressionTest().runSparseBenchmark(TEST_NAME3);
59+ // System.out.println("Fourth------------------------------------------------");
60+ // new ExpressionTest().runSparseBenchmark(TEST_NAME4);
61+ // System.out.println("Fifth------------------------------------------------");
62+ // new ExpressionTest().runSparseBenchmark(TEST_NAME5);
4163 }
4264
4365 public void runSparseBenchmark (String testname ) {
@@ -92,12 +114,12 @@ private String[] runPerfTest(String testname, boolean sparseRowVec, Types.ExecTy
92114 }
93115
94116 DMLScript .SPARSE_INTERMEDIATE = oldSparse ;
95- conn .close ();
96117 }
97118 catch (IOException e ) {
98119 throw new RuntimeException (e );
99120 }
100121 finally {
122+ conn .close ();
101123 OptimizerUtils .ALLOW_AUTO_VECTORIZATION = true ;
102124 OptimizerUtils .ALLOW_OPERATOR_FUSION = true ;
103125 }
0 commit comments