https://github.com/cyring/crc32bench
CRC32 Benchmark for x86_64 processors
https://github.com/cyring/crc32bench
benchmark crc32 optimization
Last synced: 6 months ago
JSON representation
CRC32 Benchmark for x86_64 processors
- Host: GitHub
- URL: https://github.com/cyring/crc32bench
- Owner: cyring
- License: gpl-2.0
- Created: 2017-11-23T15:02:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-28T20:35:33.000Z (about 3 years ago)
- Last Synced: 2025-03-25T11:49:23.404Z (7 months ago)
- Topics: benchmark, crc32, optimization
- Language: C
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crc32bench
CRC32 Benchmark for x86_64 processors## - Prerequisities -
C compiler: gcc or clang
TASKSET: part of the util-linux package## - Compilation -
cc -Wall -O0 crc32bench.c -o crc32bench## - Input -
# ASM version
taskset -c 1 ./crc32bench a GenuineIntel AuthenticAMD# C version
taskset -c 1 ./crc32bench c GenuineIntel AuthenticAMD## - Results (gcc) -
# ASM version
Benchmark = 8882632044 cycles
crc32bench(GenuineIntel,12) => 75a2ba39
crc32bench(GenuineIntel,12) => 75a2ba39# C version (gcc)
Benchmark = 31046108769 cycles
crc32bench(GenuineIntel,12) => 75a2ba39
crc32bench(AuthenticAMD,12) => 3485bbd3# C version (clang)
Benchmark = 17586801852 cycles
crc32bench(GenuineIntel,12) => 75a2ba39
crc32bench(AuthenticAMD,12) => 3485bbd3