Which is faster?
Next: Wordlist. After that: fake Markov.
But first: lunch. Nom nom.
While eating, I'm also going to "quickly" benchmark iocaine4 compiled in the release profile vs the opt profile.
The latter has lto = true and codegen-units = 1.
Well, the opt profile is up to 161k req/sec on jpegs, and... "Hello" is at 163k req/sec, so the difference narrowed a tiny bit.
It does show that fake jpeg generation is extremely fast, though. I'm really, really proud of optimizing the shit out of that.
I mean, look at this, this lets me do this other thing.
It's brilliant, if I dare say so myself.
To generate JPEG chunks, I need the chunks to not contain certain bytes. Instead of generating a full buffer and masking the bad bytes out, I made an RNG that masks them out at generation time, and it sits on top of any other seedable RNG, so you can use whatever RNG algo you want, as long as it is seedable.
"Hello" is obviously faster. The interesting question is: by how much?
And the answer is: about 4-5k req/sec, which, at this level, is not a whole lot.