- csStr >> threads;
- csVal >> val;
- if (val < 1 || val > THREAD_MAX)
- {
- std::cerr << "The number of threads must be between 1 and " << THREAD_MAX
- << std::endl;
- exit(EXIT_FAILURE);
- }
- set_option_value("Hash", ttSize);
- set_option_value("Threads", threads);
- set_option_value("OwnBook", "false");
- set_option_value("Use Search Log", "true");
- set_option_value("Search Log Filename", "bench.txt");
-
- csVal >> time; // In seconds
- csVal >> fileName;
-
- if (fileName != "default")
- exit(0);
-
- for (int i = 0; i < 15; i++)
+ else // Load default positions
+ for (int i = 0; !Defaults[i].empty(); i++)
+ fenList.push_back(Defaults[i]);
+
+ // Ok, let's start the benchmark !
+ totalNodes = 0;
+ time = get_system_time();
+
+ for (size_t i = 0; i < fenList.size(); i++)