The MASM Forum

General => The Laboratory => Topic started by: MichaelW on October 24, 2015, 03:45:36 PM

Title: Test of CRC32 instruction
Post by: MichaelW on October 24, 2015, 03:45:36 PM
Running on my POS Windows 8.1-64, 2.16Ghz Celeron laptop and passing the test buffer one byte at a time, the CRC32 instruction did not have any speed advantage over the table version. While I didn't have time to test this, or determine how to encode the instruction, presumably it's possible to pass 4 bytes at a time making the instruction 4 times faster.
Title: Re: Test of CRC32 instruction
Post by: jj2007 on October 24, 2015, 07:57:34 PM
Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz (MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX)

E3069283h
E3069283h

100 cycles, crc_reflected
29 cycles, crc_32
Title: Re: Test of CRC32 instruction
Post by: sinsi on October 24, 2015, 08:11:15 PM
i7-4790

E3069283h
E3069283h

37 cycles, crc_reflected
15 cycles, crc_32

Title: Re: Test of CRC32 instruction
Post by: TouEnMasm on October 25, 2015, 01:16:42 AM
Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz
Microsoft Windows 10 Famille Version: 10.0.10240

E3069283h
E3069283h

93 cycles, crc_reflected
11 cycles, crc_32

Press any key to continue ...
Title: Re: Test of CRC32 instruction
Post by: Siekmanski on October 25, 2015, 01:38:08 AM
 Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz
Windows 8.1

E3069283h
E3069283h

44 cycles, crc_reflected
26 cycles, crc_32