fastrlp icon indicating copy to clipboard operation
fastrlp copied to clipboard

Benchmark source

Open anukul opened this issue 1 year ago • 1 comments

Hi!

I'm trying to reproduce the benchmark listed in the README.

Can someone please help link to it?

anukul avatar Apr 11 '23 11:04 anukul

In my tests, fastrlp seems slower to encode geth headers:

goos: linux
goarch: amd64
pkg: scratch
cpu: AMD EPYC 7B12
BenchmarkRLP-6            773078          2829 ns/op
BenchmarkRLP-6            856600          3045 ns/op
BenchmarkRLP-6            337668          3331 ns/op
BenchmarkRLP-6            458058          3043 ns/op
BenchmarkRLP-6           1000000          3359 ns/op
BenchmarkFastRLP-6        370524          9960 ns/op
BenchmarkFastRLP-6        134360          8081 ns/op
BenchmarkFastRLP-6        148447          8619 ns/op
BenchmarkFastRLP-6        141496          8116 ns/op
BenchmarkFastRLP-6        132764          8056 ns/op
PASS
ok      scratch 26.194s

Source: https://replit.com/@AnukulSangwan/fastrlp-benchmark

anukul avatar Apr 11 '23 11:04 anukul