package org.deidentifier.arx.benchmark;

import java.io.IOException;

public class BenchmarkManager {

    /**
     * Choose benchmarkConfig to run.
     */
    private static final String recordScalingConfig   = "benchmarkConfig/recordScaling.xml";
    private static final String qiScalingConfig       = "benchmarkConfig/QIScaling.xml";
    private static final String qiScalingConfigS      = "benchmarkConfig/QIScaling_short.xml";
    private static final String kScalingConfig        = "benchmarkConfig/kScaling.xml";
    private static final String utilityVarianceConfig = "benchmarkConfig/utilityVariance.xml";
    private static final String ruleOutConfig         = "benchmarkConfig/ruleOut.xml";
    
    private static final String iterationConfig = "benchmarkConfig/rgrIterationAnalysis.xml";

    public static void main(String[] args) throws IOException {
        BenchmarkExperimentUtilityAndRuntime utilityBenchmark = new BenchmarkExperimentUtilityAndRuntime();

        double startTime = System.currentTimeMillis();
        
//        utilityBenchmark.execute(kScalingConfig);
//        utilityBenchmark.execute(recordScalingConfig);
//        utilityBenchmark.execute(qiScalingConfig);
//        utilityBenchmark.execute(qiScalingConfigS);
        utilityBenchmark.execute(utilityVarianceConfig);
//        utilityBenchmark.execute(ruleOutConfig);
        
        double elapsedTime = System.currentTimeMillis() - startTime;
        System.out.println("Total Runtime: " + elapsedTime + " ms");
        double estimatedTime = elapsedTime * 6.0 / 1000.0;
        System.out.println("Estimated time for long tests: " + estimatedTime + " sec. (" + (estimatedTime / 60.0) + " min)");
        
        BenchmarkExperimentRGRIterations iterationsBenchmark = new BenchmarkExperimentRGRIterations();
        
//        iterationsBenchmark.execute(iterationConfig);
        
        
        

    }

}

@@ -1049,34 +1049,32 @@
 s();%0D%0A        %0D%0A
-//
         utilityB
@@ -1100,34 +1100,32 @@
 calingConfig);%0D%0A
-//
         utilityB
@@ -1156,34 +1156,32 @@
 calingConfig);%0D%0A
-//
         utilityB
@@ -1208,34 +1208,32 @@
 calingConfig);%0D%0A
-//
         utilityB
@@ -1265,24 +1265,26 @@
 gConfigS);%0D%0A
+//
         util
@@ -1679,46 +1679,8 @@
  sec
-. (%22 + (estimatedTime / 60.0) + %22 min)
 %22);%0D

revert manager