| 53 | } |
| 54 | |
| 55 | void PrepBase::print_left(const char* name, size_t n, const string& type_string, |
| 56 | size_t used, bool large) |
| 57 | { |
| 58 | if (n > 0 and OnlineOptions::singleton.verbose) |
| 59 | cerr << "\t" << n << " " << name << " of " << type_string << " left" |
| 60 | << endl; |
| 61 | |
| 62 | if (n > used / 10 and n >= 64) |
| 63 | { |
| 64 | cerr << "Significant amount of unused " << name << " of " << type_string |
| 65 | << " distorting the benchmark. "; |
| 66 | if (large) |
| 67 | cerr << "This protocol has a large minimum batch size, " |
| 68 | << "which makes this unavoidable for small programs."; |
| 69 | else |
| 70 | cerr << "For more accurate benchmarks, " |
| 71 | << "consider reducing the batch size with --batch-size."; |
| 72 | cerr << endl; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | void PrepBase::print_left_edabits(size_t n, size_t n_batch, bool strict, |
| 77 | int n_bits, size_t used, bool malicious) |
no outgoing calls
no test coverage detected