evmone icon indicating copy to clipboard operation
evmone copied to clipboard

SHA256 implementation on x86-64 with sha extension is very slow

Open chfast opened this issue 7 months ago • 1 comments

I noticed that the SHA256 implementation sha_256_x86_sha() for x86-64 with the sha extension is over 10x slower that the other implementation (sha_256_x86_bmi()).

evmone-statetest fixtures_static/fixtures/state_tests --gtest_filter=static/state_tests/stQuadraticComplexityTest.Call50000_sha256

Gives 29.4s for sha and 2.5s for bmi.

chfast avatar May 30 '25 08:05 chfast

This is clang compiler issue. GCC compiles this fine and executes the test in 0.5s.

chfast avatar May 30 '25 12:05 chfast