Files
crc64nvme/crc64_arm64.go
Klaus PostandGitHub c385d191e1 Add AVX512 version ~4x speedup. (#5)
```
goos: windows
goarch: amd64
pkg: github.com/minio/crc64nvme
cpu: AMD Ryzen 9 9950X 16-Core Processor
benchmark                         old MB/s      new MB/s       speedup
BenchmarkCrc64/64MB-32            21252.23      37358.45       1.76x
BenchmarkCrc64/stdlib-64MB-32     2891.94       2907.63        1.01x
BenchmarkCrc64/4MB-32             21769.59      85310.58       3.92x
BenchmarkCrc64/stdlib-4MB-32      2889.93       2912.28        1.01x
BenchmarkCrc64/1MB-32             21795.60      85118.75       3.91x
BenchmarkCrc64/stdlib-1MB-32      2873.09       2909.16        1.01x
BenchmarkCrc64/64KB-32            21746.77      84209.54       3.87x
BenchmarkCrc64/stdlib-64KB-32     2789.28       2787.71        1.00x
BenchmarkCrc64/4KB-32             21261.32      72029.80       3.39x
BenchmarkCrc64/stdlib-4KB-32      1795.91       1797.37        1.00x
BenchmarkCrc64/1KB-32             19814.95      47444.58       2.39x
BenchmarkCrc64/stdlib-1KB-32      695.79        701.45         1.01x
BenchmarkParallel/1KB-32          64954.25      66650.20       1.03x
BenchmarkParallel/10KB-32         261123.46     477433.70      1.83x
BenchmarkParallel/1M-32           308893.11     1045715.71     3.39x
BenchmarkParallel/50M-32          67493.29      66237.74       0.98x
```
2025-07-21 19:15:21 +02:00

18 lines
497 B
Go

// Copyright (c) 2025 Minio Inc. All rights reserved.
// Use of this source code is governed by a license that can be
// found in the LICENSE file.
//go:build !noasm && !appengine && !gccgo
package crc64nvme
import (
"github.com/klauspost/cpuid/v2"
)
var hasAsm = cpuid.CPU.Supports(cpuid.ASIMD, cpuid.PMULL, cpuid.SHA3)
var hasAsm512 = false
func updateAsm(crc uint64, p []byte) (checksum uint64)
func updateAsm512(crc uint64, p []byte) (checksum uint64) { panic("should not be reached") }