News for hackers. Stuff that matters.
Re:Pay attention to WebAssembly by peterth3 on Monday January 31, 2022 @07:29PM (#30156971)
Levenstein distance with WASM is 40% faster in the benchmarks on the linked medium article.

WASM (145,086 ops/sec)

JavaScript (102,775 ops/sec)

https://medium.com/netscape/javascript-c-modern-ways-to-use-...

Re:Pay attention to WebAssembly by maga on Monday January 31, 2022 @07:38PM (#30157039)
And that's another thing about JavaScript engines--they evolve and usually result in better performance. The article is written in 2017 and the results are from Node.js of the time, meanwhile the results in the repository are from the last year.
Re:Pay attention to WebAssembly by zamadatix on Monday January 31, 2022 @07:46PM (#30157101)
Can confirm, I ran the benchmark in that repo and rather than JS being 30% faster in Levenstein distance it was ~10% slower but both had improved relative to the native score.
Re:Pay attention to WebAssembly by duped on Monday January 31, 2022 @09:33PM (#30157916)
Is it a naive recursive implementation or the matrix formulation?