🚀 Fast and 100% API compatible postcss replacer, built in Rust
⚠️ DO NOT USE. STILL WORK IN PROGRESS.
Tokenize bootstrap.css (Compare with postcss.js):
rust: 0.00s user 0.00s system 71% cpu 0.007 total
js: 0.13s user 0.02s system 126% cpu 0.109 total
# tokenize bootstrap-reboot.css ~18x
js: tokenizer/small(7K) : 2.274ms
rust: tokenizer/small(7K) : 0.120ms
# tokenize bootstrap.css ~14x
js: tokenizer/small(201K) : 31.367ms
rust: tokenizer/small(201K) : 2.158ms🎉 Welcome contribute, here is a guide:
git checkout main
cargo bench -- --save-baseline mainCreate a baseline, Then do some optimization work here.
git checkout feature ## `feature` is your branch Compare against the main baseline.
cargo bench -- --baseline main