I've been working on a thing that compiles scratch projects to webassembly recently. Today I finished a couple of things that meant I could run some benchmarks - I was expecting it to run as fast as turbowarp seeing as at the moment there are so many things missing that would slow it down - turns out it was 3x slower than vanilla scratch just for incrementing a number 1000000 times 😬

I then did the loop using a < block rather than = and it ran twice as fast as scratch (and also twice as slow as turbowarp but I'm going to ignore that)

I've got a lot of work to do! 😊

comments

oh i had that idea too, cool to see someone’s working on it

it seems like a lot of people have had that idea then :P

apparently people have actually done it before but I haven't been able to find any links… I also think tacodiva said she was working on something similar which is why she made https://github.com/tacodiva/wasm-spider ?