Skip to content

Weird performance results in Faster SHA-256 (611788242) #267

@GarboMuffin

Description

@GarboMuffin

https://turbowarp.org/611788242

This is benchmarking 5x as fast in Firefox than Chromium and Safari in old compiler and new compiler. That's very unusual so might be something weird going on here worth looking into more to get the other browsers up.

Image

Firefox profiler: https://share.firefox.dev/4258ufg

Chrome profiler: https://share.firefox.dev/4ng2g4G

Personal hypothesis without any evidence to back it up: the inlining heuristics in JS engines except SpiderMonkey really don't want to inline mod() for whatever reason. Replacing with % didn't really change anything so I no longer think this is the case

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceIdeas for improving performance

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions