Exemple #1
0
 /** Generates synthetic data with only normal users. */
 private static void normalsOnly() {
   long start = System.nanoTime();
   Simulation.run(KeepObjectsInMemory.instance());
   //		Simulation.run(SaveToDatabase.instance());
   long end = System.nanoTime();
   System.out.println((end - start) / 1000000);
   //		ClusterAnalysis.clusterSimData("");
 }
Exemple #2
0
  public static void main(String[] args) throws InterruptedException {
    System.out.println("Start.");
    long t1 = System.nanoTime();

    //		for (int i = 0; i < 20; i++) {
    //			for (int j = 10; j > 0; j--) {
    ////				System.out.println(j);
    //				AuctionHouse.changeUnitLength(j);
    //				normalsOnly();
    //				break;
    //			}
    //		}
    //
    //		withFraudsIntoDiffDatabases();
    //		whileAway1();
    //		whileAway2();

    long delta = System.nanoTime() - t1;
    System.out.println(delta / 1000000000 + "s");
    System.out.println("Finished.");
  }