Skip to content

Conversation

@nvzqz
Copy link
Contributor

@nvzqz nvzqz commented Jun 10, 2025

Changed from the nightly benchmark harness to Divan, and renamed benchmark functions to be more consistent and to remove mentions of the parent group.

I considered defining benchmarks to be within the same file, but decided to keep them separated so that this PR can be relatively non-invasive.

Benchmark Output

apache                     fastest       │ slowest       │ median        │ mean          │ samples │ iters
├─ match                   2.54 µs       │ 20.83 µs      │ 2.583 µs      │ 2.787 µs      │ 100     │ 100
├─ match_anchor            2.541 µs      │ 2.687 µs      │ 2.583 µs      │ 2.586 µs      │ 100     │ 200
├─ no_match_end            47.16 µs      │ 54.12 µs      │ 47.24 µs      │ 47.58 µs      │ 100     │ 100
├─ no_match_end_anchor     8.29 µs       │ 9.124 µs      │ 8.374 µs      │ 8.396 µs      │ 100     │ 100
├─ no_match_middle         2.54 µs       │ 4.665 µs      │ 2.624 µs      │ 2.653 µs      │ 100     │ 100
├─ no_match_middle_anchor  2.582 µs      │ 6.603 µs      │ 2.624 µs      │ 2.674 µs      │ 100     │ 200
├─ no_match_start          24.74 µs      │ 30.66 µs      │ 24.87 µs      │ 25.04 µs      │ 100     │ 100
╰─ no_match_start_anchor   2.749 µs      │ 2.895 µs      │ 2.791 µs      │ 2.793 µs      │ 100     │ 200

log                 fastest       │ slowest       │ median        │ mean          │ samples │ iters
├─ match            749.6 ns      │ 18.12 µs      │ 791.6 ns      │ 977.5 ns      │ 100     │ 100
├─ match_anchor     780.8 ns      │ 807 ns        │ 786.1 ns      │ 788.5 ns      │ 100     │ 800
├─ no_match         1.426 µs      │ 1.489 µs      │ 1.437 µs      │ 1.441 µs      │ 100     │ 400
╰─ no_match_anchor  864.1 ns      │ 963.2 ns      │ 874.6 ns      │ 880.4 ns      │ 100     │ 800

simple              fastest       │ slowest       │ median        │ mean          │ samples │ iters
├─ match            207.6 ns      │ 21.16 µs      │ 249.6 ns      │ 455 ns        │ 100     │ 100
├─ match_anchor     226.1 ns      │ 232.7 ns      │ 227.5 ns      │ 227.7 ns      │ 100     │ 3200
├─ no_match         75.8 ns       │ 79.05 ns      │ 77.09 ns      │ 76.98 ns      │ 100     │ 6400
╰─ no_match_anchor  75.8 ns       │ 82.97 ns      │ 77.09 ns      │ 77.18 ns      │ 100     │ 6400

nvzqz added 2 commits June 10, 2025 14:38
Removed mentions of the parent group.

Changed to consistently use "anchor" instead of "with_anchors".
@mmastrac mmastrac merged commit c50587b into mmastrac:main Jun 16, 2025
3 checks passed
@nvzqz nvzqz deleted the feat/divan-benches branch June 17, 2025 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants