mawk-1.9.9.6, Windows 10 64bit 1903, MinGW64 GCC 9.3.0 `mawk "BEGIN{while(i++<100000)printf i}" > a.txt` This command takes 37.76 seconds. While mawk 1.3.3 takes only 0.06 seconds.