maciejhirsz / logos

Create ridiculously fast Lexers
https://logos.maciej.codes
Apache License 2.0
2.85k stars 115 forks source link

chore(docs): cleanup examples #381

Closed jeertmans closed 7 months ago

jeertmans commented 7 months ago

Apply nightly clippy fixes

github-actions[bot] commented 7 months ago

Benchmark results:

group                                         before                                 changes
-----                                         ------                                 -------
count_ok/identifiers                          1.00   868.9±11.85ns   855.0 MB/sec    1.00   869.7±30.49ns   854.2 MB/sec
count_ok/keywords_operators_and_punctators    1.00      2.6±0.05µs   780.6 MB/sec    1.01      2.6±0.13µs   772.3 MB/sec
count_ok/strings                              1.04   596.5±13.63ns  1392.6 MB/sec    1.00   574.6±16.83ns  1445.6 MB/sec
iterate/identifiers                           1.00    867.1±5.01ns   856.8 MB/sec    1.00   870.3±26.89ns   853.6 MB/sec
iterate/keywords_operators_and_punctators     1.00      2.7±0.06µs   762.3 MB/sec    1.01      2.7±0.04µs   757.3 MB/sec
iterate/strings                               1.02   587.9±22.72ns  1412.8 MB/sec    1.00   573.7±14.71ns  1447.8 MB/sec