3 ms·
And when you want to make the code readable you try to space things out, split things in small functions, use longer and clear variables name. I guess they are
by simion314 4y ago
And when you want to make the code readable you try to space things out, split things in small functions, use longer and clear variables name. I guess they are asking for running the code trough a minifier so their implementation gains some points.
- kibwen 4y agoOn other benchmarks they measure the size of source code after it's been run through compression, as a way to normalize that. Not sure if that's been done here, but it should be.
- igouy 4y agoYes, they're the same measurements.
- benstrumental 4y agoI can't find the documentation for it, but you can see here that they measure the size of the source file after gzip compression, which reduces advantage of code-golf solutions: https://salsa.debian.org/benchmarksgame-team/benchmarksgame/-/blob/master/bencher/bin/bencher.py#L706 https://salsa.debian.org/benchmarksgame-team/benchmarksgame/...
- igouy 4y ago"How source code size is measured" https://benchmarksgame-team.pages.debian.net/benchmarksgame/how-programs-are-measured.html#source-code https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- benstrumental 4y agoThanks Isaac. How do I reach that page? I expected it on one of the informational pages such as the home page or benchmark programs page, but had no luck.
- igouy 4y agoThere's a "How programs are measured" link on these pages which show measurements: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/c.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... :and these pages: https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/fannkuchredux.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... :and these pages: https://benchmarksgame-team.pages.debian.net/benchmarksgame/measurements/gcc.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...