3 ms·
Probably your implementation is limited by the speed PHP/echo can output things to stdout, rather than your implementation per-se. Better, use a benchmarking f
by capableweb 4y ago
Probably your implementation is limited by the speed PHP/echo can output things to stdout, rather than your implementation per-se.
Better, use a benchmarking framework/library to see how many OP/sec you can do, within the PHP runtime, so you remove stdout from the benchmark.
- mg 4y agoWell, that's part of the challenge. To write to stdout as fast as possible. There is a large FizzBuzz shootout here that I like: https://codegolf.stackexchange.com/questions/215216 https://codegolf.stackexchange.com/questions/215216 I think it's a nice "standard" for FizzBuzz comparison.
- capableweb 4y agoWell, then remove the whole "fizzbuzz" part of the equation and just try to output as much data to stdout as possible. Conflating the two seems to confuse more than measure anything useful.