Gather data
This commit is contained in:
@@ -16,7 +16,7 @@ import java.util.stream.Collectors;
|
||||
|
||||
import static puzzle.Export.*;
|
||||
import static puzzle.SwedishGenerator.*;
|
||||
import static puzzle.SwedishGenerator.loadWords;
|
||||
import static puzzle.SwedishGenerator.Dict.loadDict;
|
||||
|
||||
public class Main {
|
||||
|
||||
@@ -244,11 +244,11 @@ public class Main {
|
||||
PuzzleResult generatePuzzle(Opts opts) {
|
||||
|
||||
var tLoad0 = System.nanoTime();
|
||||
var dict = loadWords(opts.wordsPath);
|
||||
var dict = loadDict(opts.wordsPath);
|
||||
var tLoad1 = System.nanoTime();
|
||||
|
||||
section("Load");
|
||||
info(String.format(Locale.ROOT, "words : %,d", dict.dictLength() ));
|
||||
info(String.format(Locale.ROOT, "words : %,d", dict.length() ));
|
||||
info(String.format(Locale.ROOT, "loadTime : %.3f s", (tLoad1 - tLoad0) / 1e9));
|
||||
|
||||
section("Search");
|
||||
@@ -332,7 +332,7 @@ public class Main {
|
||||
if (TOTAL_SUCCESS.get() > 0) {
|
||||
info(String.format(Locale.ROOT, "avgSimplic : %.2f", TOTAL_SIMPLICITY.get() / 100.0 / TOTAL_SUCCESS.get()));
|
||||
}
|
||||
info(String.format(Locale.ROOT, "dictWords : %,d", dict.dictLength()));
|
||||
info(String.format(Locale.ROOT, "dictWords : %,d", dict.length()));
|
||||
|
||||
return resFinal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user