[Zlib-devel] [5/6][RFC V2 Patch] Add an Alpha MAX version of Adler32

Jan Seiffert kaffeemonster at googlemail.com
Sun Apr 3 18:05:03 EDT 2011


Thanks to Mike Frysinger, i could test the code on an Alpha.
Result:
I had a silly typo, one should decrement the right loop counter...
Also the start cost is a little higher then expected, so raise it.
Fixed with the attached patch

And for those who like pretty numbers:

an Alpha EV68 when no ByteWordeXtention is used
        -------- orig ------
                a: 0x0CB4B676, 10000 * 160000 bytes     t: 5008.384 ms
                a: 0x25BEB273, 10000 * 159999 bytes     t: 4202.496 ms
                a: 0x733CB174, 10000 * 159998 bytes     t: 4769.792 ms
                a: 0x1144AF76, 10000 * 159996 bytes     t: 4804.608 ms
                a: 0x3F4ECB8A, 10000 * 159992 bytes     t: 5287.936 ms
                a: 0x1902A382, 10000 * 159984 bytes     t: 5074.944 ms
         -------- risc2 ------
                a: 0x0CB4B676, 10000 * 160000 bytes     t: 3879.936 ms
                a: 0x25BEB273, 10000 * 159999 bytes     t: 3879.936 ms
                a: 0x733CB174, 10000 * 159998 bytes     t: 3878.912 ms
                a: 0x1144AF76, 10000 * 159996 bytes     t: 3880.960 ms
                a: 0x3F4ECB8A, 10000 * 159992 bytes     t: 3876.864 ms
                a: 0x1902A382, 10000 * 159984 bytes     t: 3879.936 ms
         speedup: 1.290842

an Alpha EV68 with MAX used (which means BWX is used for the original code)
         -------- orig ------
                a: 0x0CB4B676, 10000 * 160000 bytes     t: 3646 ms
                a: 0x25BEB273, 10000 * 159999 bytes     t: 3294 ms
                a: 0x733CB174, 10000 * 159998 bytes     t: 3335 ms
                a: 0x1144AF76, 10000 * 159996 bytes     t: 3400 ms
                a: 0x3F4ECB8A, 10000 * 159992 bytes     t: 3351 ms
                a: 0x1902A382, 10000 * 159984 bytes     t: 3369 ms
         -------- MAX ------
                a: 0x0CB4B676, 10000 * 160000 bytes     t: 1953 ms
                a: 0x25BEB273, 10000 * 159999 bytes     t: 1948 ms
                a: 0x733CB174, 10000 * 159998 bytes     t: 1963 ms
                a: 0x1144AF76, 10000 * 159996 bytes     t: 1962 ms
                a: 0x3F4ECB8A, 10000 * 159992 bytes     t: 1958 ms
                a: 0x1902A382, 10000 * 159984 bytes     t: 1964 ms
         speedup: 1.866871
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 05.1-alpha.patch
Type: text/x-patch
Size: 1403 bytes
Desc: not available
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20110404/0130b04d/attachment.bin>


More information about the Zlib-devel mailing list