//// Includes
////
+#include <cstdio>
#include <iostream>
#include <string>
int main(int argc, char* argv[]) {
- // Disable IO buffering
+ // Disable IO buffering for C and C++ standard libraries
+ setvbuf(stdin, NULL, _IONBF, 0);
+ setvbuf(stdout, NULL, _IONBF, 0);
cout.rdbuf()->pubsetbuf(NULL, 0);
cin.rdbuf()->pubsetbuf(NULL, 0);
{
if (string(argv[1]) != "bench" || argc > 7)
cout << "Usage: stockfish bench [hash size = 128] [threads = 1] "
- << "[limit = 12] [fen positions file = default] "
+ << "[limit = 11] [fen positions file = default] "
<< "[depth, time, perft or node limited = depth]" << endl;
else
benchmark(argc, argv);