Skip to content

Instantly share code, notes, and snippets.

@tmc
Last active June 19, 2021 21:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmc/f1364bcee04d1192278dd2f297cf116f to your computer and use it in GitHub Desktop.
Save tmc/f1364bcee04d1192278dd2f297cf116f to your computer and use it in GitHub Desktop.
Pure Go VRF implementation benchmarking
goos: linux
goarch: amd64
pkg: github.com/algorand/go-algorand/crypto
cpu: Intel(R) Xeon(R) CPU @ 2.30GHz
BenchmarkVrfVerifyGo-2 signal: interrupt
FAIL github.com/algorand/go-algorand/crypto 1.863s
goos: linux
goarch: amd64
pkg: github.com/algorand/go-algorand/crypto
cpu: Intel(R) Xeon(R) CPU @ 2.30GHz
BenchmarkVrfVerifyGo-2 3171 370247 ns/op
BenchmarkProveBytes-2 4530 297956 ns/op
BenchmarkProveBytesGo-2 4254 277794 ns/op
BenchmarkVrfVerify-2 3204 367954 ns/op
PASS
ok github.com/algorand/go-algorand/crypto 7.559s
goos: linux
goarch: amd64
pkg: github.com/algorand/go-algorand/crypto
cpu: Intel(R) Xeon(R) CPU @ 2.30GHz
BenchmarkVrfVerifyGo-2 3222 370731 ns/op
BenchmarkProveBytes-2 4578 294118 ns/op
BenchmarkProveBytesGo-2 4240 276197 ns/op
BenchmarkVrfVerify-2 3175 371328 ns/op
PASS
ok github.com/algorand/go-algorand/crypto 7.594s
goos: linux
goarch: amd64
pkg: github.com/algorand/go-algorand/crypto
cpu: Intel(R) Xeon(R) CPU @ 2.30GHz
BenchmarkVrfVerifyGo-2 3198 371191 ns/op
BenchmarkProveBytes-2 4428 301747 ns/op
BenchmarkProveBytesGo-2 4124 275489 ns/op
BenchmarkVrfVerify-2 3302 368198 ns/op
PASS
ok github.com/algorand/go-algorand/crypto 7.580s
goos: linux
goarch: amd64
pkg: github.com/algorand/go-algorand/crypto
cpu: Intel(R) Xeon(R) CPU @ 2.30GHz
BenchmarkVrfVerifyGo-2 3172 370009 ns/op
BenchmarkProveBytes-2 4429 300346 ns/op
BenchmarkProveBytesGo-2 4256 278068 ns/op
BenchmarkVrfVerify-2 3352 364596 ns/op
PASS
ok github.com/algorand/go-algorand/crypto 7.641s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment