From: Mateusz Viste <mate...@nospam.viste.fr> On Mon, 10 Apr 2017 00:56:17 -0500, Rugxulo wrote: > It would be interesting to see some benchmark numbers for that (for > various specific tools, 8086, 386, etc).
Just for the fun of it, I did some quick measures on my 386SX PC, computing various checksums of a 2 MiB file. Results below. BSUM (by Mateusz Viste) : 6.0s (100%) CRC32 (by Joe Forster) : 8.5s (70%) CRC32 (by Colin Plumb) : 26.7s (22%) MD5 (by Colin Plumb) : 52.9s (11%) SHA1 (by Colin Plumb) : 85.7s (7%) BSUM is the fastest, which is no surprise since the algorithm is extremely simple (4 CPU instructions). The CRC32 computation by Joe Forster is surprisingly fast as well. It's 30% slower than bsum and the binary is 4x times larger (and I suppose the memory usage is also much higher) but that's still quite impressive for a 32-bit checksum. > Splurge on the memory, give it 32 kb or so. It'll "probably" be faster > with a bigger buffer. At the cost of reducing the number of platforms it would be able to run on. Currently bsum uses an 8K memory buffer to optimize disk reads. Using a buffer of 64KB increases the overall speed by 10%. Not that much, for a 700% increase of memory usage. Mateusz ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user --- Internet Rex 2.29 * Origin: capcity2.synchro.net - 502/875-8938 (276:10/901) --- Synchronet 3.15a-Linux ListGate 1.3 * Capitol City Online - Frankfort, KY - telnet://capitolcityonline.net ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user