3 ms·
only getting 69 MB/s with my crappy Go code: package hex import ( "bytes" "encoding/hex" "testing" ) func Benchm
by 38 3y ago
only getting 69 MB/s with my crappy Go code:
package hex
import (
"bytes"
"encoding/hex"
"testing"
)
func Benchmark_Hex(b *testing.B) {
src := bytes.Repeat([]byte("00"), 100_000_000)
for n := 0; n < b.N; n++ {
hex.Decode(src, src)
}
}