<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://beardedmaker.com/wiki/index.php?action=history&amp;feed=atom&amp;title=The_Fastest_Checksum</id>
		<title>The Fastest Checksum - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://beardedmaker.com/wiki/index.php?action=history&amp;feed=atom&amp;title=The_Fastest_Checksum"/>
		<link rel="alternate" type="text/html" href="https://beardedmaker.com/wiki/index.php?title=The_Fastest_Checksum&amp;action=history"/>
		<updated>2026-04-28T09:14:47Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.4</generator>

	<entry>
		<id>https://beardedmaker.com/wiki/index.php?title=The_Fastest_Checksum&amp;diff=2816&amp;oldid=prev</id>
		<title>Beard at 06:03, 8 August 2018</title>
		<link rel="alternate" type="text/html" href="https://beardedmaker.com/wiki/index.php?title=The_Fastest_Checksum&amp;diff=2816&amp;oldid=prev"/>
				<updated>2018-08-08T06:03:39Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Question: Which checksum algorithm is the fastest?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Answer: the System V sum algorithm using 512 byte blocks.&amp;lt;/pre&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use it by running &amp;lt;code class=&amp;quot;C&amp;quot;&amp;gt;sum -s filename&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;-s&amp;lt;/code&amp;gt; switch tells it to use the System V algorithm instead of the default BSD algorithm.&lt;br /&gt;
&lt;br /&gt;
It can also read from standard input like &amp;lt;code class=&amp;quot;C&amp;quot;&amp;gt;cat filename | sum -s -&amp;lt;/code&amp;gt; (the hyphen at the end tells sum to read from stdin).&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Here's how it compares to other algorithms:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I chose a relatively large file and put it in my &amp;lt;i&amp;gt;tmpfs&amp;lt;/i&amp;gt; to eliminate the hard drive bottleneck.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
winter@wintermute:/run$ ls -lh linuxmint-17-mate-64bit-v2.iso&lt;br /&gt;
-rwxr-xr-x 1 root root 1.4G Apr  5 08:57 linuxmint-17-mate-64bit-v2.iso&lt;br /&gt;
&lt;br /&gt;
winter@wintermute:/run$ time sha1sum linuxmint-17-mate-64bit-v2.iso&lt;br /&gt;
7ea275072dc77e8006df879105dee9eb3b8ecb53  linuxmint-17-mate-64bit-v2.iso&lt;br /&gt;
&lt;br /&gt;
real    0m4.869s&lt;br /&gt;
user    0m4.689s&lt;br /&gt;
sys     0m0.176s&lt;br /&gt;
&lt;br /&gt;
winter@wintermute:/run$ time md5sum linuxmint-17-mate-64bit-v2.iso&lt;br /&gt;
215edb6ab70d2250cae99b6f02dce45a  linuxmint-17-mate-64bit-v2.iso&lt;br /&gt;
&lt;br /&gt;
real    0m2.670s&lt;br /&gt;
user    0m2.479s&lt;br /&gt;
sys     0m0.192s&lt;br /&gt;
&lt;br /&gt;
winter@wintermute:/run$ time crc32 linuxmint-17-mate-64bit-v2.iso&lt;br /&gt;
5bb66ab6&lt;br /&gt;
&lt;br /&gt;
real    0m1.752s&lt;br /&gt;
user    0m1.578s&lt;br /&gt;
sys     0m0.172s&lt;br /&gt;
&lt;br /&gt;
winter@wintermute:/run$ time sum linuxmint-17-mate-64bit-v2.iso&lt;br /&gt;
07152 1431936&lt;br /&gt;
&lt;br /&gt;
real    0m2.577s&lt;br /&gt;
user    0m2.363s&lt;br /&gt;
sys     0m0.212s&lt;br /&gt;
&lt;br /&gt;
winter@wintermute:/run$ time sum -s linuxmint-17-mate-64bit-v2.iso&lt;br /&gt;
61984 2863872 linuxmint-17-mate-64bit-v2.iso&lt;br /&gt;
&lt;br /&gt;
real    0m0.767s&lt;br /&gt;
user    0m0.587s&lt;br /&gt;
sys     0m0.180s&lt;br /&gt;
&lt;br /&gt;
winter@wintermute:/run$ sum --version|head -1&lt;br /&gt;
sum (GNU coreutils) 8.21&lt;br /&gt;
&lt;br /&gt;
winter@wintermute:/run$ lscpu&lt;br /&gt;
Architecture:          x86_64&lt;br /&gt;
CPU op-mode(s):        32-bit, 64-bit&lt;br /&gt;
Byte Order:            Little Endian&lt;br /&gt;
CPU(s):                4&lt;br /&gt;
On-line CPU(s) list:   0-3&lt;br /&gt;
Thread(s) per core:    1&lt;br /&gt;
Core(s) per socket:    4&lt;br /&gt;
Socket(s):             1&lt;br /&gt;
NUMA node(s):          1&lt;br /&gt;
Vendor ID:             GenuineIntel&lt;br /&gt;
CPU family:            6&lt;br /&gt;
Model:                 42&lt;br /&gt;
Stepping:              7&lt;br /&gt;
CPU MHz:               1638.656&lt;br /&gt;
BogoMIPS:              6600.22&lt;br /&gt;
Virtualization:        VT-x&lt;br /&gt;
L1d cache:             32K&lt;br /&gt;
L1i cache:             32K&lt;br /&gt;
L2 cache:              256K&lt;br /&gt;
L3 cache:              6144K&lt;br /&gt;
NUMA node0 CPU(s):     0-3&lt;br /&gt;
&lt;br /&gt;
winter@wintermute:/run$ sudo lshw -short -C memory|grep MHz&lt;br /&gt;
/0/f/0                    memory         8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)&lt;br /&gt;
/0/f/1                    memory         4GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)&lt;br /&gt;
/0/f/2                    memory         8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I've run this test several times and the results are very consistent.&lt;/div&gt;</summary>
		<author><name>Beard</name></author>	</entry>

	</feed>