dbrgn / tealdeer

A very fast implementation of tldr in Rust.
https://dbrgn.github.io/tealdeer/
Apache License 2.0
4.06k stars 123 forks source link

performance optimize with cargo flags #355

Closed Walker-00 closed 5 months ago

Walker-00 commented 6 months ago
Benchmark 1: tldr ip
  Time (mean ± σ):       2.9 ms ±   0.2 ms    [User: 1.0 ms, System: 1.6 ms]
  Range (min … max):     2.0 ms …   3.6 ms    500 runs

Benchmark 2: ./target/release/tldr ip
  Time (mean ± σ):       2.6 ms ±   0.2 ms    [User: 1.2 ms, System: 1.1 ms]
  Range (min … max):     1.8 ms …   3.4 ms    500 runs

Summary
  ./target/release/tldr ip ran
    1.15 ± 0.13 times faster than tldr ip
Walker-00 commented 5 months ago

Thanks!

Do we still need

https://github.com/dbrgn/tealdeer/blob/17c08f026180204a47d7a1914c36de61e94ff991/.github/workflows/release.yml#L73 ?

I don't know but the performance really improved, right?

Walker-00 commented 5 months ago

and also sorry for late reply, reinstalling arch in slow internet connection is a nightmare.

dbrgn commented 5 months ago

Thanks!

Do we still need

https://github.com/dbrgn/tealdeer/blob/17c08f026180204a47d7a1914c36de61e94ff991/.github/workflows/release.yml#L73 ?

I'm not sure, but it doesn't really hurt 🙂