argon2-browser icon indicating copy to clipboard operation
argon2-browser copied to clipboard

Unable to reproduce argon2.wasm file found on website

Open blake-regalia opened this issue 1 year ago • 5 comments

Building from the master branch with the latest emsdk produces a completely different binary than what is hosted on the demo website. At cursory glance of the WAT formats, the bin from the website (shown on the left) has more exports and seems to target 64-bit platform whereas the output from master (shown on the right) has fewer exports and does not use i64 anywhere.

Screen Shot 2022-12-11 at 18 05 28

The reason I discovered this was because I have not been able to get nearly the same performance (more than 10x slower) compared to the WASM found on the demo site. Was this compiled using different flags? I have tried building on several different platforms but get the same results.

EDIT: I see that the website is CI built via GH workflow, I wonder if the toolchain has changed significantly since then, since I cannot explain the differences.

blake-regalia avatar Dec 12 '22 02:12 blake-regalia