Nick Glencross wrote:
Guys,
this patch makes some small updates to the MD5 files.
...
It would also be interesting for benchmarking, but I haven't got around to trying
As a rough comparison running the md5sum.imc located in the examples directory (on Linux/AMD Athlon), I get:
Empty file (to measure startup and assemble): Default Core: 0.1s JIT Core: 0.1s
2MB file: Default Core: 19 seconds JIT Core: 1.9 seconds
Which pretty much matches the 10-fold JIT increase that I suggested in the comments. [Things were run a couple of times first to allow the executable and files to get cached.]
Still some way off the OS md5sum, which is typically 0.15 seconds, about 12x quicker. That may sound quite a bit, but much of it can probably be accounted for by inefficiencies in my conversion to parrot code (a slightly awkward rol, and perhaps the manipulation of the arrays). Contrary to what I keep being told by Java programmers, you'll never going to be as fast as optimised C code, let's face it.
Regards,
Nick