Conversation
|
Maybe because of jemalloc? |
|
because opt level changed to |
|
Ah, yes. Removing Also btw, I had to add this to Cargo.toml to get it to build on M1: I think wasm-opt isn't built for ARM yet... |
I just tried, and at least for me on an M1 Mac, jemalloc is a little faster. I think in Parcel we use mimalloc on Windows though. |
|
Another thing to note is that the first (couple?) invocation(s) of the wasm version are slower because it's not JITed yet but interpreted. So for accurate timings, you need to do something like for(let i = 0; i < 10; i++){
css.transform(opts);
}
console.time('parcel-css');
let res = css.transform(opts);
console.timeEnd('parcel-css');
console.log(res.length + ' bytes'); |
Looks like the perf difference got larger since last time I tested.