Skip to content

Instantly share code, notes, and snippets.

@dbaudisch
dbaudisch / checksum.go
Created March 3, 2022 17:28
My take on the concurrent checksum calculator
package main
import (
"crypto/sha256"
"fmt"
"io/fs"
"io/ioutil"
"os"
"path/filepath"
"sync"
./xmand 1048576 262144 -7.499252259685e-01 -1.213768124597e-02 16
-------------------------------------------------------------
system name = Linux
node name = unknown
release = 5.10.6-arch1-1
version = #1 SMP PREEMPT Sat, 09 Jan 2021 18:22:35 +0000
machine = x86_64
page size = 4096
avail memory = 6164049920
= 6019580 kB