| 215 | } |
| 216 | |
| 217 | void print_usage() { |
| 218 | printf("JSON Performance Profiler\n"); |
| 219 | printf("Compares parse() (Legacy) vs parse2() (custom parser)\n\n"); |
| 220 | printf("Usage:\n"); |
| 221 | printf(" json_performance # Run small JSON benchmark (default)\n"); |
| 222 | printf(" json_performance small # Run small JSON benchmark\n"); |
| 223 | printf(" json_performance large # Run large JSON benchmark\n"); |
| 224 | printf(" json_performance all # Run all benchmarks\n"); |
| 225 | } |
| 226 | |
| 227 | int main(int argc, char* argv[]) { |
| 228 | const char* mode = "small"; // Default mode |