shaoxiong789 / postcss-rs

πŸš€ Fast and 100% API compatible postcss replacer, built in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

postcss-rs

πŸš€ Fast and 100% API compatible postcss replacer, built in Rust

⚠️ DO NOT USE. STILL WORK IN PROGRESS.

Performance Improvement

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

About

πŸš€ Fast and 100% API compatible postcss replacer, built in Rust


Languages

Language:Rust 100.0%