public static void main(String[] args) { // Test can be run as standalone program to test out serialization and parsing // performance numbers, using Caja as a parser. if (args.length != 2) { System.err.println("Args: <input-file> <num-runs>"); System.exit(1); } String fileArg = args[0]; String runsArg = args[1]; int numRuns = -1; try { numRuns = Integer.parseInt(runsArg); } catch (Exception e) { System.err.println("Invalid num-runs argument: " + runsArg + ", reason: " + e); } try { new ParseTreeSerializerBenchmark(fileArg, numRuns); } catch (Exception e) { e.printStackTrace(); } } }
public static void main(String[] args) { // Test can be run as standalone program to test out serialization and parsing // performance numbers, using Caja as a parser. if (args.length != 2) { System.err.println("Args: <input-file> <num-runs>"); System.exit(1); } String fileArg = args[0]; String runsArg = args[1]; int numRuns = -1; try { numRuns = Integer.parseInt(runsArg); } catch (Exception e) { System.err.println("Invalid num-runs argument: " + runsArg + ", reason: " + e); } try { new ParseTreeSerializerBenchmark(fileArg, numRuns); } catch (Exception e) { e.printStackTrace(); } } }
public static void main(String[] args) { // Test can be run as standalone program to test out serialization and parsing // performance numbers, using Caja as a parser. if (args.length != 2) { System.err.println("Args: <input-file> <num-runs>"); System.exit(1); } String fileArg = args[0]; String runsArg = args[1]; int numRuns = -1; try { numRuns = Integer.parseInt(runsArg); } catch (Exception e) { System.err.println("Invalid num-runs argument: " + runsArg + ", reason: " + e); } try { new ParseTreeSerializerBenchmark(fileArg, numRuns); } catch (Exception e) { e.printStackTrace(); } } }