/** * Only prints @a string when the verbose option is enabled. */ void debug(String string) { if (Options.getInstance().getVerbose()) System.out.println(string); }
/** * Only prints @a string when the verbose option is enabled. */ void debug(String string) { if (Options.getInstance().getVerbose()) System.out.println(string); }
/** * Display @a string if the program is run in verbose mode. */ static void display(String string) { if (Options.getInstance().getVerbose()) System.out.println(string); }
/** * Display @a string if the program is run in verbose mode. */ private static void display(String string) { if (Options.getInstance().getVerbose()) System.out.println(string); }
/** * Only prints @a string when the verbose option is enabled. */ void debug(String string) { if (Options.getInstance().getVerbose()) System.out.println(string); }
/** * Store the search results. */ private static void storeResults(String testConfig, long stopTime, List<List<SearchResults>> listOfListOfSearchResults) { // Print the number of times each phrase matched the input. mResultsMap.put(stopTime, "The search returned = " // Count the number of matches. + listOfListOfSearchResults.stream() .mapToInt(list -> list.stream().mapToInt(SearchResults::size).sum()) .sum() + " phrase matches in " + stopTime + " milliseconds for " + testConfig); // Print the matching titles. if (Options.getInstance().isVerbose()) printTitles(listOfListOfSearchResults); }
/** * Store the search results. */ private static void storeResults(String testConfig, long stopTime, List<List<SearchResults>> listOfListOfSearchResults) { // Print the number of times each phrase matched the input. mResultsMap.put(stopTime, "The search returned = " // Count the number of matches. + listOfListOfSearchResults.stream() .mapToInt(list -> list.stream().mapToInt(SearchResults::size).sum()) .sum() + " phrase matches in " + stopTime + " milliseconds for " + testConfig); // Print the matching titles. if (Options.getInstance().isVerbose()) printTitles(listOfListOfSearchResults); }
/** * Store the search results. */ private static void storeResults(String testName, long stopTime, List<List<SearchResults>> listOfListOfSearchResults) { // Print the number of times each phrase matched the input. mResultsMap.put(stopTime, "The search returned = " // Count the number of matches. + listOfListOfSearchResults.stream() .mapToInt(list -> list.stream().mapToInt(SearchResults::size).sum()) .sum() + " phrase matches for " + mInputList.size() + " input strings in " + stopTime + " milliseconds for " + testName); // Print the matching titles. if (Options.getInstance().isVerbose()) printTitles(listOfListOfSearchResults); }
/** * Main entry point into the program. */ static public void main(String[] argv) { // Parse the options. Options.getInstance().parseArgs(argv); // Warmup the stream pool. warmupThreadPool(); // Run all the tests. runTests(); // Print the results. System.out.println(RunTimer.getTimingResults()); }
/** * Main entry point into the program. */ static public void main(String[] argv) { // Parse the options. Options.getInstance().parseArgs(argv); // Warmup the stream pool. warmupThreadPool(); // Run the tests sequentially. runTests(false); // Run the tests in parallel. runTests(true); // Print the results. System.out.println(RunTimer.getTimingResults()); }
Options.getInstance().parseArgs(args); Options.getInstance().getInputSeparator()); Options.getInstance().getInputSeparator());
Options.getInstance().parseArgs(args);
Options.getInstance().parseArgs(args);