3 ms·
I can't see any numbers comparing the rust implementation and the optimised javascript. Did I miss them in the article?
by bitdivision 9y ago
I can't see any numbers comparing the rust implementation and the optimised javascript. Did I miss them in the article?
- steveklabnik 9y agoA comment upthread did the math: > The author is able to achieve a speed-up of ~4x which is close to the 5.89x achieved by the Rust implementation.
- mraleph 9y agoThe math is not that obvious because Rust implementation does not match 1-1 what baseline JS version was doing (e.g. it sorts only generatedMappings and not originalMappings). I will do measurements later to compare and update the post.
- steveklabnik 9y agoSounds good! I enjoyed the article :)
- jjnoakes 9y agoWith the caveat that it's apples-to-oranges (algorithmic changes to the JavaScript version (~4x) are not in the Rust version (~5.9x)).