| 225 | } |
| 226 | |
| 227 | int main(int argc, char* argv[]) { |
| 228 | const char* mode = "small"; // Default mode |
| 229 | |
| 230 | if (argc > 1) { |
| 231 | mode = argv[1]; |
| 232 | } |
| 233 | |
| 234 | bool success = true; |
| 235 | |
| 236 | if (fl::strcmp(mode, "small") == 0) { |
| 237 | success = run_small_benchmark(); |
| 238 | } else if (fl::strcmp(mode, "large") == 0) { |
| 239 | success = run_large_benchmark(); |
| 240 | } else if (fl::strcmp(mode, "all") == 0) { |
| 241 | success = run_small_benchmark() && run_large_benchmark(); |
| 242 | } else if (fl::strcmp(mode, "help") == 0 || fl::strcmp(mode, "--help") == 0 || fl::strcmp(mode, "-h") == 0) { |
| 243 | print_usage(); |
| 244 | return 0; |
| 245 | } else { |
| 246 | printf("Unknown mode: %s\n\n", mode); |
| 247 | print_usage(); |
| 248 | return 1; |
| 249 | } |
| 250 | |
| 251 | return success ? 0 : 1; |
| 252 | } |
nothing calls this directly
no test coverage detected