Comparison of highlighting via WASM vs using pure javascript

preview_player
Показать описание
In order to try to figure out whether we can replace our syntax highlighting library with a faster WASM version, I decided to benchmark different solutions out there.

The code can be found here:
Рекомендации по теме
Комментарии
Автор

Not really an apples to apples comparison, because you're measuring just the stringify call for JS, but closer to the entire end-to-end process for the others.
That said, WASM currently only accelerates compute heavy workloads. In this case, marshalling the data will cost more than the actual workload itself. So it's unlikely to give a difference in result.

Aidiakapi