Hacker News new | ask | show | jobs
by capableweb 1470 days 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.

1 comments

Well, 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

I think it's a nice "standard" for FizzBuzz comparison.

Well, 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.