3 ms·
So AssemblyScript can beat JavaScript if you benchmark every function and then optimize them by hand every time it is slower? So most (all?) of the code posted
by tpetry 6y ago
So AssemblyScript can beat JavaScript if you benchmark every function and then optimize them by hand every time it is slower?
So most (all?) of the code posted which looked like a straight port to AssemblyScript was slower than JavaScript before optimizing it? I don‘t know how you feel, but i personally don‘t want to optimize every function to get the promised speed :(
- onion2k 6y agoIf your app is doing most of the work it needs to do in 1ms, but one path takes 200ms, then clearly you only need to optimize things on the slow path. You don't have to optimize everything to get a huge perf improvement.
- hackcasual 6y agoAssemblyScript is still in development, if you're interested in WASM optimizing an app, Rust or C are better bets