Skip to content

Instantly share code, notes, and snippets.

View MarekM25's full-sized avatar

Marek Moraczyński MarekM25

  • Warsaw
View GitHub Profile
@MarekM25
MarekM25 / gist:79982c313c1179cbfd68c9414f8925fa
Last active December 16, 2024 10:12
Nethermind updated results
bench-g1add-1: 76.83 mgas/s (70.78-84.01)
bench-g1msm-1: 82.18 mgas/s (75.04-90.81)
bench-g1msm-10: 86.42 mgas/s (79.99-93.98)
bench-g1msm-11: 90.17 mgas/s (86.37-94.31)
bench-g1msm-12: 96.52 mgas/s (95.04-98.04)
bench-g1msm-128: 83.80 mgas/s (77.11-91.76)
bench-g1msm-13: 86.93 mgas/s (86.75-87.12)
bench-g1msm-14: 86.30 mgas/s (85.42-87.19)
@MarekM25
MarekM25 / gist:8cd79b736299c908e073ac75bbc79b40
Created December 13, 2024 16:03
Intel NUC 11 Nethermind adjusted to Pawel's curve
bench-g1add-1: 45.32 mgas/s (42.04-49.17)
bench-g1msm-1: 49.62 mgas/s (45.35-54.79)
bench-g1msm-10: 50.55 mgas/s (47.01-54.66)
bench-g1msm-11: 51.80 mgas/s (47.27-57.28)
bench-g1msm-12: 52.78 mgas/s (47.81-58.90)
bench-g1msm-128: 49.62 mgas/s (44.96-55.37)
bench-g1msm-13: 52.63 mgas/s (47.81-58.53)
bench-g1msm-14: 50.37 mgas/s (45.33-56.68)
bench-g1msm-15: 50.29 mgas/s (46.28-55.05)
bench-g1msm-16: 47.74 mgas/s (43.89-52.32)
root@marek-NUC:/home/marek/go-ethereum/core/vm# go test -bench=PrecompiledBLS12381 -run=^$
goos: linux
goarch: amd64
pkg: github.com/ethereum/go-ethereum/core/vm
cpu: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
BenchmarkPrecompiledBLS12381G1Add/matter_g1_add_0-Gas=375-8 121408 8394 ns/op 375.0 gas/op 44.67 mgas/s 320 B/op 3 allocs/op
BenchmarkPrecompiledBLS12381G1Add/matter_g1_add_1-Gas=375-8 214945 5781 ns/op 375.0 gas/op 64.87 mgas/s 320 B/op 3 allocs/op
BenchmarkPrecompiledBLS12381G1Add/matter_g1_add_2-Gas=375-8 171356 8349 ns/op 375.0 gas/op 44.91 mgas/s 320 B/op 3 allocs/op
BenchmarkPrecompiledBLS12381G1Add/matter_g1_add_3-Gas=375-8 220711 5813 ns/op 375.0 gas/op 64.50 mgas/s 320 B/op 3 allocs/op
BenchmarkPrecompiledBLS12381G1Mul/matter_g1_mul_0-Gas=12000-8 5146 236384 ns/op 12000 gas/op 50.76 mgas/s
@MarekM25
MarekM25 / gist:149842767299ebb727d93063994880f1
Last active December 11, 2024 10:29
2nd run - BLS Geth
root@marek-NUC:/home/marek/go-ethereum/core/vm# go test -bench=PrecompiledBLS12381 -run=^$
goos: linux
goarch: amd64
pkg: github.com/ethereum/go-ethereum/core/vm
cpu: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
BenchmarkPrecompiledBLS12381G1Add/matter_g1_add_0-Gas=375-8 131205 8054 ns/op 375.0 gas/op 46.56 mgas/s 320 B/op 3 allocs/op
BenchmarkPrecompiledBLS12381G1Add/matter_g1_add_1-Gas=375-8 179660 8016 ns/op 375.0 gas/op 46.78 mgas/s 320 B/op 3 allocs/op
BenchmarkPrecompiledBLS12381G1Add/matter_g1_add_2-Gas=375-8 177844 7469 ns/op 375.0 gas/op 50.20 mgas/s 320 B/op 3 allocs/op
BenchmarkPrecompiledBLS12381G1Add/matter_g1_add_3-Gas=375-8 158671 6761 ns/op 375.0 gas/op 55.46 mgas/s 320 B/op 3 allocs/op
BenchmarkPrecompiledBLS12381G1Mul/matter_g1_mul_0-Gas=12000-8 3603 283544 ns/op 12000 gas/op 42.32 mgas/s
@MarekM25
MarekM25 / gist:bce010cde0dc0b76728373356cda3b53
Last active December 11, 2024 12:07
Ec Recover differences
root@marek-NUC:/home/marek/go-ethereum/core/vm# go test -bench=PrecompiledEcrecover -run=^$
goos: linux
goarch: amd64
pkg: github.com/ethereum/go-ethereum/core/vm
cpu: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
BenchmarkPrecompiledEcrecover/-Gas=3000-8 12085 126547 ns/op 3000 gas/op 23.70 mgas/s 768 B/op 7 allocs/op
PASS
ok github.com/ethereum/go-ethereum/core/vm 2.558s
root@marek-NUC:/home/marek/go-ethereum/core/vm# go test -bench=PrecompiledEcrecover -run=^$
goos: linux
@MarekM25
MarekM25 / gist:5657f52e5dd33fb80f165038feb72757
Created December 10, 2024 22:26
Geth BLS gas costs - Marek's NUC
BenchmarkPrecompiledBLS12381G1Add/matter_g1_add_0-Gas=375-8 187648 8619 ns/op 375.0 gas/op 43.50 mgas/s 320 B/op 3 allocs/op
BenchmarkPrecompiledBLS12381G1Add/matter_g1_add_1-Gas=375-8 139885 7447 ns/op 375.0 gas/op 50.35 mgas/s 320 B/op 3 allocs/op
BenchmarkPrecompiledBLS12381G1Add/matter_g1_add_2-Gas=375-8 168278 8393 ns/op 375.0 gas/op 44.67 mgas/s 320 B/op 3 allocs/op
BenchmarkPrecompiledBLS12381G1Add/matter_g1_add_3-Gas=375-8 183548 6473 ns/op 375.0 gas/op 57.92 mgas/s 320 B/op 3 allocs/op
BenchmarkPrecompiledBLS12381G1Mul/matter_g1_mul_0-Gas=12000-8 4082 271358 ns/op 12000 gas/op 44.22 mgas/s 1088 B/op 14 allocs/op
BenchmarkPrecompiledBLS12381G1Mul/matter_g1_mul_1-Gas=12000-8 4172 285995 ns/op 12000 gas/op 41.95 mgas/s 1024 B/op 13 allocs/op
BenchmarkPreco