From c5df73306e1456ed9fc92b38e90ae3210ff3f714 Mon Sep 17 00:00:00 2001 From: "codspeed-hq[bot]" <117304815+codspeed-hq[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 11:54:59 +0000 Subject: [PATCH 1/2] Improve CodSpeed CI: OIDC auth, latest action, macro runners for walltime --- .github/workflows/ci.yml | 19 +++++++++---------- README.md | 2 ++ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91f59d0..3a6417e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,7 @@ on: permissions: actions: read contents: read + id-token: write jobs: build: @@ -41,18 +42,17 @@ jobs: env: RUSTFLAGS: "-C target-feature=+avx2" run: | - cargo codspeed build --profile bench -m instrumentation + cargo codspeed build --profile bench -m simulation - - name: Run benchmarks - Instrumentation - uses: CodSpeedHQ/action@281164b0f014a4e7badd2c02cecad9b595b70537 # v4 + - name: Run benchmarks - Simulation + uses: CodSpeedHQ/action@3194d9a39c4d46684cb44bf7207fc56626aad8fd # v4.15.1 with: run: cargo codspeed run - token: ${{ secrets.CODSPEED_TOKEN }} - mode: instrumentation + mode: simulation bench-codspeed-walltime: - name: Benchmark with Codspeed - runs-on: ubuntu-latest + name: Benchmark with Codspeed (Walltime) + runs-on: codspeed-macro steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - uses: ./.github/actions/setup-rust @@ -67,9 +67,8 @@ jobs: run: | cargo codspeed build --profile bench -m walltime - - name: Run benchmarks - Wall time - uses: CodSpeedHQ/action@281164b0f014a4e7badd2c02cecad9b595b70537 # v4 + - name: Run benchmarks - Walltime + uses: CodSpeedHQ/action@3194d9a39c4d46684cb44bf7207fc56626aad8fd # v4.15.1 with: run: cargo codspeed run - token: ${{ secrets.CODSPEED_TOKEN }} mode: walltime diff --git a/README.md b/README.md index 79602d8..b3a543a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # onpair +[![CodSpeed](https://img.shields.io/endpoint?url=https://codspeed.io/badge.json)](https://codspeed.io/spiraldb/onpair?utm_source=badge) + OnPair is a dictionary-based string compression algorithm designed for in-memory database workloads that need both strong compression ratios and fast random access to individual values. It builds its dictionary in a single sequential pass by incrementally merging frequent adjacent substrings, achieving compression comparable to BPE while being substantially faster and more memory-efficient. This crate is a Rust port targeted at the SpiralDB engine. ## References From 66a7d2363774dca665e454dce350efad96df55eb Mon Sep 17 00:00:00 2001 From: "codspeed-hq[bot]" <117304815+codspeed-hq[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 12:21:44 +0000 Subject: [PATCH 2/2] Use ubuntu-latest for walltime job (codspeed-macro not yet provisioned) --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a6417e..0b7f9b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,7 +52,7 @@ jobs: bench-codspeed-walltime: name: Benchmark with Codspeed (Walltime) - runs-on: codspeed-macro + runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - uses: ./.github/actions/setup-rust