π 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.01s user 0.00s system 79% cpu 0.009 total
js: 0.13s user 0.02s system 126% cpu 0.109 total
# tokenize bootstrap-reboot.css
js: tokenizer/small(7K) : 2.274ms
rust: tokenizer/small(7K) : 0.160ms
# tokenize bootstrap.css
js: tokenizer/small(201K) : 31.367ms
rust: tokenizer/small(201K) : 2.4582ms
π Welcome contribute, here is a guide:
git checkout main
cargo bench -- --save-baseline main
Create a baseline, Then do some optimization work here.
git checkout feature ## `feature` is your branch
Compare against the main
baseline.
cargo bench -- --baseline main