Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Reading the repo, the benchmark includes the entire program execution from startup to reading the file.

For the sub-second compiled languages, it's basically a benchmark of startup times, not performance in the hot loop.





How much difference would it make for these tiny programs?

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...


Author here. I just tested this with Zig by timing the segments inside the program:

  1 billion iterations:
  - Startup + file read: 0.01ms
  - Computation: ~200ms
  - Overhead: 0.01%
Even at 1 million iterations (0.24ms total), startup is only 4% overhead. At 1 billion it's essentially zero.

The benchmark is definitely measuring the hot loop, not startup time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: