Skip to content

Instantly share code, notes, and snippets.

@singhgurjeet
Created August 21, 2012 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save singhgurjeet/3410952 to your computer and use it in GitHub Desktop.
Save singhgurjeet/3410952 to your computer and use it in GitHub Desktop.
time = System.currentTimeMillis();
oldMakeTable(table, numRows, numCols);
System.out.println(String.format("Ingested in %.2g seconds", (System.currentTimeMillis() - time)/1000.0));
time = System.currentTimeMillis();
oldScanTable(table, numRows, numCols);
System.out.println(String.format("Scanned in %.2g seconds", (System.currentTimeMillis() - time)/1000.0));
time = System.currentTimeMillis();
newMakeTable(table, numRows, numCols, segmentSize);
System.out.println(String.format("Ingested in %.2g seconds", (System.currentTimeMillis() - time)/1000.0));
time = System.currentTimeMillis();
newScanTable(table, numRows, numCols, segmentSize);
System.out.println(String.format("Scanned in %.2g seconds", (System.currentTimeMillis() - time)/1000.0));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment