3 ms·
Note to self: If I ever implement a compiler, I'll include a special Fibonacci detection pass in the optimizer.
by codeflo 14y ago
Note to self: If I ever implement a compiler, I'll include a special Fibonacci detection pass in the optimizer.
- mjn 14y agoThat kind of thing does happen when the stakes get high enough. There are a lot of rumors (and some evidence) of special-cased "cheating" on commonly used benchmarks, including the 3dMark GPU benchmarks, SPEC CPU benchmarks, even SunSpider JS benchmarks.
- spitfire 14y agoBoth Nvidia and ATI have been caught cheating at graphics benchmarks. Their drivers would detect when the benchmark programs were being run, and go through lower quality fast paths. You can google "quack.exe" for details on one particularly famous case.
- lliiffee 14y agoActually, it takes real effort to make GCC not completely optimize-away this kind of stuff for C: https://github.com/JuliaLang/julia/issues/1325 https://github.com/JuliaLang/julia/issues/1325
- smosher 14y agoThere's a simple solution to that: use Ackermann instead. It measures the same thing and is a function of its own time complexity to boot.