GuillaumeGomez / minifier-rs

Minifier tool/lib for JS/CSS/JSON files
MIT License
86 stars 16 forks source link

Improving json minifier #22

Closed mettke closed 6 years ago

mettke commented 6 years ago

Got another PR for #20 This concludes the json minfier development, as its performance is now good enough IMHO

Command being timed: "/bin/cargo test --release --color=always --package minifier --lib json::bench_test -- --nocapture --exact"
User time (seconds): 8.74
System time (seconds): 0.13
Percent of CPU this job got: 265%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:03.34
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 192692
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 26041
Voluntary context switches: 222
Involuntary context switches: 785
Swaps: 0
File system inputs: 0
File system outputs: 16176
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
GuillaumeGomez commented 6 years ago

Awesome! Thanks a lot! I'll see if I can unify other minifiers' interface with yours now it's finished.