benchmark
Compile C source code once, run the program multiple times, and report min, max, and average execution time in milliseconds to compare algorithm variants.
Instructions
Compile once, then run the program N times (default 5) and report min/max/avg execution time in milliseconds. Useful for comparing algorithm variants on the real DOS runtime.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | C source code. | |
| runs | No | Number of runs (1–50, default 5). | |
| stdin | No | Optional stdin fed to each run. | |
| filename | No | Optional file name; normalized to DOS 8.3 (.C). Default MAIN.C. | |
| extraCompilerArgs | No | Optional extra Turbo C flags, e.g. ['-ms','-w-','-O']. |