Skip to content

Conversation

@cuiweixie
Copy link
Contributor

@cuiweixie cuiweixie commented Jan 9, 2026

test with cgo:

goos: darwin
goarch: arm64
pkg: github.com/ethereum/go-ethereum/core/vm
cpu: Apple M4 Pro
                                  │   old.txt   │            new.txt            │
                                  │   sec/op    │   sec/op     vs base          │
PrecompiledEcrecover/-Gas=3000-14   15.02µ ± 7%   15.07µ ± 2%  ~ (p=0.853 n=10)

                                  │   old.txt   │             new.txt             │
                                  │   gas/op    │   gas/op     vs base            │
PrecompiledEcrecover/-Gas=3000-14   3.000k ± 0%   3.000k ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

                                  │  old.txt   │           new.txt            │
                                  │   mgas/s   │   mgas/s    vs base          │
PrecompiledEcrecover/-Gas=3000-14   199.8 ± 6%   199.1 ± 2%  ~ (p=0.838 n=10)

                                  │  old.txt   │              new.txt               │
                                  │    B/op    │    B/op     vs base                │
PrecompiledEcrecover/-Gas=3000-14   352.0 ± 0%   272.0 ± 0%  -22.73% (p=0.000 n=10)

                                  │  old.txt   │              new.txt               │
                                  │ allocs/op  │ allocs/op   vs base                │
PrecompiledEcrecover/-Gas=3000-14   6.000 ± 0%   5.000 ± 0%  -16.67% (p=0.000 n=10)

@cuiweixie cuiweixie changed the title crypto: make cgo Ecrevoer not escape sig in place like precompile ecr… crypto: make cgo Ecrevoer not escape sig in place like precompile ecrecover Jan 9, 2026
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

Successfully merging this pull request may close these issues.

1 participant