Author Topic: Test of CRC32 instruction  (Read 2894 times)

MichaelW

  • Global Moderator
  • Member
  • *****
  • Posts: 1209
Test of CRC32 instruction
« 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.
Well Microsoft, here’s another nice mess you’ve gotten us into.

jj2007

  • Member
  • *****
  • Posts: 11157
  • Assembler is fun ;-)
    • MasmBasic
Re: Test of CRC32 instruction
« Reply #1 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

sinsi

  • Guest
Re: Test of CRC32 instruction
« Reply #2 on: October 24, 2015, 08:11:15 PM »
i7-4790

E3069283h
E3069283h

37 cycles, crc_reflected
15 cycles, crc_32


TouEnMasm

  • Member
  • *****
  • Posts: 1590
    • EditMasm
Re: Test of CRC32 instruction
« Reply #3 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 ...
Fa is a musical note to play with CL

Siekmanski

  • Member
  • *****
  • Posts: 2357
Re: Test of CRC32 instruction
« Reply #4 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
Creative coders use backward thinking techniques as a strategy.