Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark source #13

Open
anukul opened this issue Apr 11, 2023 · 1 comment
Open

Benchmark source #13

anukul opened this issue Apr 11, 2023 · 1 comment

Comments

@anukul
Copy link

anukul commented Apr 11, 2023

Hi!

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

Can someone please help link to it?

@anukul
Copy link
Author

anukul commented Apr 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant