clp

command line syntax highlighter
git clone git://jeskin.net/clp.git
README | Log | Files | Refs | LICENSE

commit e8f84ca611c1be72b97cdeee5ea4797e752856b1
parent 753d51f0fca4a06b714d6161f59ee9c548ee7125
Author: Jon Eskin <eskinjp@gmail.com>
Date:   Tue, 26 Jul 2022 11:28:53 -0400

Update benchmarks in README to use hyperfine

Diffstat:
MREADME.md | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md @@ -52,11 +52,11 @@ make a very perceptible difference. Quick benchmarks on my machine (clp installed with LuaJIT, highlighting [sqlite3.c](https://fossies.org/linux/sqlite/sqlite3.c)) -``` -time clp sqlite3.c > /dev/null # 276.75 millis -time bat --color=always -p sqlite3.c > /dev/null # 3.06 secs -time source-highlight sqlite3.c > /dev/null # 4.71 secs -``` +| Command | Mean [ms] | Min [ms] | Max [ms] | Relative | +|:---|---:|---:|---:|---:| +| `clp sqlite3.c` | 216.6 ± 2.4 | 212.2 | 220.8 | 1.00 | +| `bat --color=always sqlite3.c` | 3161.0 ± 12.3 | 3149.7 | 3182.7 | 14.59 ± 0.17 | +| `source-highlight sqlite3.c` | 4313.6 ± 25.5 | 4277.7 | 4355.9 | 19.91 ± 0.25 | Parsers are upstreamed from the [Scintillua](https://orbitalquark.github.io/scintillua/) project. It's actively