Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🚀 Fast and 100% API compatible postcss replacer, built in Rust

License

NotificationsYou must be signed in to change notification settings

postcss-rs/postcss-rs

Repository files navigation

🚀 Fast and 100% API compatible postcss replacer, built in Rust

⚠️ DO NOT USE. STILL WORK IN PROGRESS.

Performance Improvement

Run benchmark:

cargo build --release --locked --bin"benchmark*"cargo run --release --bin benchmark

Tokenizer (Compare with Node.js v16.13.0):

js:   0.71s user 0.09s system 152% cpu 0.619 totalrust: 0.03s user 0.01s system  93% cpu 0.039 total
filetailwind-components.cssbootstrap-reboot.cssbootstrap-grid.cssbootstrap.csstailwind.csstailwind-dark.css
size2.8K7.4K71K201K3.5M5.8M
js1.813ms2.380ms11.856ms33.919ms167.309ms224.577ms
rust0.019ms0.037ms0.191ms0.721ms9.624ms15.743ms
~95x64x61x47x17x14x

Parser (Compare with Node.js v16.13.0):

js:   1.45s user 0.16s system 183% cpu 0.881 totalrust: 0.10s user 0.03s system  97% cpu 0.137 total
filetailwind-components.cssbootstrap-reboot.cssbootstrap-grid.cssbootstrap.csstailwind.csstailwind-dark.css
size2.8K7.4K71K201K3.5M5.8M
js4.405ms4.203ms33.344ms55.749ms356.345ms441.832ms
rust0.070ms0.088ms1.016ms2.220ms45.112ms68.663ms
~63x47x33x25x8x6x

🎉 Welcome to contribute, here is a guide:

git checkout maincargo bench -- --save-baseline main

Create a baseline, Then do some optimization work here.

git checkout feature## `feature` is your branch

Compare against themain baseline.

cargo bench -- --baseline main

License

postcss-rs is released under theMIT License. See theLICENSE file in the project root directory for details.

ACKNOWLEDGEMENT

The project is based on the wonderful work of Andrey Sitnik(@ai) 'spostcss, which is under MIT License(SeeHERE), Great thanks to Mr. Sitnik and other contributors' work.

About

🚀 Fast and 100% API compatible postcss replacer, built in Rust

Topics

Resources

License

Stars

Watchers

Forks

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp