Skip to content

fix: remove redundant path sanitize - #1141

Merged
wellwelwel merged 1 commit into
mainfrom
list
Jun 10, 2026
Merged

fix: remove redundant path sanitize#1141
wellwelwel merged 1 commit into
mainfrom
list

Conversation

@wellwelwel

@wellwelwel wellwelwel commented Jun 10, 2026

Copy link
Copy Markdown
Owner

As the title says 🤓

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.71%. Comparing base (40ccd6c) to head (69aec7b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1141   +/-   ##
=======================================
  Coverage   99.71%   99.71%           
=======================================
  Files          65       65           
  Lines        3560     3560           
  Branches      568      568           
=======================================
  Hits         3550     3550           
- Misses          1        2    +1     
+ Partials        9        8    -1     
Flag Coverage Δ
linux 98.90% <100.00%> (ø)
osx 98.90% <100.00%> (ø)
windows 95.84% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wellwelwel wellwelwel changed the title fix: remove redundant sanitize fix: remove redundant path sanitize Jun 10, 2026
@wellwelwel-bot

Copy link
Copy Markdown

🎖️ Benchmarks

🐷 Poku 🃏 Jest ⚡️ Vitest 🦕 Deno 🐢 Node.js 🍞 Bun
🏃🏻‍♀️ Test Runner $\textsf{0.177s}$
${\color{gray}\textsf{(baseline)}}$
$\textsf{0.919s}$
${\color{red}\textsf{(+742ms)}}$
$\textsf{0.782s}$
${\color{red}\textsf{(+605ms)}}$
$\textsf{0.372s}$
${\color{red}\textsf{(+195ms)}}$
$\textsf{0.212s}$
${\color{red}\textsf{(+35ms)}}$
$\textsf{0.095s}$
${\color{green}\textsf{(-82ms)}}$
🧬 No Isolation $\textsf{0.055s}$
${\color{gray}\textsf{(baseline)}}$
$\textsf{0.947s}$
${\color{red}\textsf{(+892ms)}}$
$\textsf{0.577s}$
${\color{red}\textsf{(+522ms)}}$
$\textsf{0.376s}$
${\color{red}\textsf{(+321ms)}}$
$\textsf{0.062s}$
${\color{red}\textsf{(+7ms)}}$
$\textsf{0.032s}$
${\color{green}\textsf{(-23ms)}}$
🧪 Assertion $\textsf{0.095s}$
${\color{gray}\textsf{(baseline)}}$
$\textsf{0.568s}$
${\color{red}\textsf{(+473ms)}}$
$\textsf{0.495s}$
${\color{red}\textsf{(+400ms)}}$
$\textsf{0.799s}$
${\color{red}\textsf{(+704ms)}}$
$\textsf{0.104s}$
${\color{red}\textsf{(+9ms)}}$
$\textsf{0.013s}$
${\color{green}\textsf{(-82ms)}}$
🔗 Nesting $\textsf{0.147s}$
${\color{gray}\textsf{(baseline)}}$
$\textsf{0.829s}$
${\color{red}\textsf{(+682ms)}}$
$\textsf{0.774s}$
${\color{red}\textsf{(+627ms)}}$
$\textsf{0.444s}$
${\color{red}\textsf{(+297ms)}}$
$\textsf{0.535s}$
${\color{red}\textsf{(+388ms)}}$
$\textsf{0.043s}$
${\color{green}\textsf{(-104ms)}}$
ℹ Extensive Details

🖥️ Setup

  • OS: linux x64
  • CPU: AMD EPYC 9V74 80-Core Processor (4 cores)
  • RAM: 15.61 GB

🏃🏻‍♀️ Test Runner

Focuses solely in execution, using a simple assert(true) or assert(false) from Node.js and searches for files in four levels of depth.

  • success: a suite of 5 tests that will pass.
  • failure: a suite of 5 tests that will fail.
  • balanced: a suite of 10 tests where 5 tests will fail and 5 tests will pass.

🃏 Jest

  • success
  🐷 Poku (69aec7b) ran
    5.19 ± 0.10 times faster than jest
See commands
source
node --experimental-vm-modules ./node_modules/jest/bin/jest.js "./test/execution/success/jest"
poku
node ./node_modules/poku/lib/bin/index.js "./test/execution/success/poku"
  • failure
  🐷 Poku (69aec7b) ran
    5.02 ± 0.08 times faster than jest
See commands
source
node --experimental-vm-modules ./node_modules/jest/bin/jest.js "./test/execution/failure/jest"
poku
node ./node_modules/poku/lib/bin/index.js "./test/execution/failure/poku"
  • balanced
  🐷 Poku (69aec7b) ran
    5.29 ± 0.08 times faster than jest
See commands
source
node --experimental-vm-modules ./node_modules/jest/bin/jest.js "./test/execution/balanced/jest"
poku
node ./node_modules/poku/lib/bin/index.js "./test/execution/balanced/poku"

⚡️ Vitest

  • success
  🐷 Poku (69aec7b) ran
    4.43 ± 0.10 times faster than vitest
See commands
source
node ./node_modules/vitest/vitest.mjs run "./test/execution/success/vitest"
poku
node ./node_modules/poku/lib/bin/index.js "./test/execution/success/poku"
  • failure
  🐷 Poku (69aec7b) ran
    4.18 ± 0.08 times faster than vitest
See commands
source
node ./node_modules/vitest/vitest.mjs run "./test/execution/failure/vitest"
poku
node ./node_modules/poku/lib/bin/index.js "./test/execution/failure/poku"
  • balanced
  🐷 Poku (69aec7b) ran
    4.52 ± 0.12 times faster than vitest
See commands
source
node ./node_modules/vitest/vitest.mjs run "./test/execution/balanced/vitest"
poku
node ./node_modules/poku/lib/bin/index.js "./test/execution/balanced/poku"

🐢 Node.js (built-in)

  • success
  🐷 Poku (69aec7b) ran
    1.11 ± 0.02 times faster than node
See commands
source
node --test "./test/execution/success/node/**/**.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/execution/success/poku"
  • failure
  🐷 Poku (69aec7b) ran
    1.13 ± 0.04 times faster than node
See commands
source
node --test "./test/execution/failure/node/**/**.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/execution/failure/poku"
  • balanced
  🐷 Poku (69aec7b) ran
    1.32 ± 0.03 times faster than node
See commands
source
node --test "./test/execution/balanced/node/**/**.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/execution/balanced/poku"

🍞 Bun (built-in)

  • success
  bun ran
    1.74 ± 0.09 times faster than 🐷 Poku (69aec7b)
See commands
source
bun test --parallel --isolate "./test/execution/success/bun"
poku
bun --bun ./node_modules/poku/lib/bin/index.js "./test/execution/success/poku"
  • failure
  bun ran
    1.71 ± 0.08 times faster than 🐷 Poku (69aec7b)
See commands
source
bun test --parallel --isolate "./test/execution/failure/bun"
poku
bun --bun ./node_modules/poku/lib/bin/index.js "./test/execution/failure/poku"
  • balanced
  bun ran
    1.74 ± 0.05 times faster than 🐷 Poku (69aec7b)
See commands
source
bun test --parallel --isolate "./test/execution/balanced/bun"
poku
bun --bun ./node_modules/poku/lib/bin/index.js "./test/execution/balanced/poku"

🦕 Deno (built-in)

  • success
  🐷 Poku (69aec7b) ran
    1.71 ± 0.02 times faster than deno
See commands
source
deno test "./test/execution/success/deno"
poku
deno run --allow-all ./node_modules/poku/lib/bin/index.js "./test/execution/success/poku"
  • failure
  🐷 Poku (69aec7b) ran
    1.28 ± 0.05 times faster than deno
See commands
source
deno test "./test/execution/failure/deno"
poku
deno run --allow-all ./node_modules/poku/lib/bin/index.js "./test/execution/failure/poku"
  • balanced
  🐷 Poku (69aec7b) ran
    2.01 ± 0.03 times faster than deno
See commands
source
deno test "./test/execution/balanced/deno"
poku
deno run --allow-all ./node_modules/poku/lib/bin/index.js "./test/execution/balanced/poku"

🚀 No Isolation

Same fixtures as Test Runner, but with test isolation disabled where supported (Poku --isolation=none, Jest --runInBand, Vitest --no-isolate, Node.js --test-isolation=none, Bun plain bun test). Deno has no per-file isolation flag, so it stays on deno test.

  • success: a suite of 5 tests that will pass.
  • failure: a suite of 5 tests that will fail.
  • balanced: a suite of 10 tests where 5 tests will fail and 5 tests will pass.

🃏 Jest

  • success
  🐷 Poku (69aec7b) ran
   15.65 ± 0.71 times faster than jest
See commands
source
node --experimental-vm-modules ./node_modules/jest/bin/jest.js --runInBand "./test/execution/success/jest"
poku
node ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/success/poku"
  • failure
  🐷 Poku (69aec7b) ran
   15.41 ± 0.70 times faster than jest
See commands
source
node --experimental-vm-modules ./node_modules/jest/bin/jest.js --runInBand "./test/execution/failure/jest"
poku
node ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/failure/poku"
  • balanced
  🐷 Poku (69aec7b) ran
   20.49 ± 2.13 times faster than jest
See commands
source
node --experimental-vm-modules ./node_modules/jest/bin/jest.js --runInBand "./test/execution/balanced/jest"
poku
node ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/balanced/poku"

⚡️ Vitest

  • success
  🐷 Poku (69aec7b) ran
   11.21 ± 0.50 times faster than vitest
See commands
source
node ./node_modules/vitest/vitest.mjs run --no-isolate "./test/execution/success/vitest"
poku
node ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/success/poku"
  • failure
  🐷 Poku (69aec7b) ran
   10.73 ± 0.38 times faster than vitest
See commands
source
node ./node_modules/vitest/vitest.mjs run --no-isolate "./test/execution/failure/vitest"
poku
node ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/failure/poku"
  • balanced
  🐷 Poku (69aec7b) ran
   10.40 ± 0.29 times faster than vitest
See commands
source
node ./node_modules/vitest/vitest.mjs run --no-isolate "./test/execution/balanced/vitest"
poku
node ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/balanced/poku"

🐢 Node.js (built-in)

  • success
  🐷 Poku (69aec7b) ran
    1.09 ± 0.06 times faster than node
See commands
source
node --test --test-isolation=none "./test/execution/success/node/**/**.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/success/poku"
  • failure
  🐷 Poku (69aec7b) ran
    1.13 ± 0.04 times faster than node
See commands
source
node --test --test-isolation=none "./test/execution/failure/node/**/**.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/failure/poku"
  • balanced
  🐷 Poku (69aec7b) ran
    1.18 ± 0.07 times faster than node
See commands
source
node --test --test-isolation=none "./test/execution/balanced/node/**/**.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/balanced/poku"

🍞 Bun (built-in)

  • success
  bun ran
    1.51 ± 0.03 times faster than 🐷 Poku (69aec7b)
See commands
source
bun test "./test/execution/success/bun"
poku
bun --bun ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/success/poku"
  • failure
  bun ran
    1.50 ± 0.02 times faster than 🐷 Poku (69aec7b)
See commands
source
bun test "./test/execution/failure/bun"
poku
bun --bun ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/failure/poku"
  • balanced
  bun ran
    1.40 ± 0.06 times faster than 🐷 Poku (69aec7b)
See commands
source
bun test "./test/execution/balanced/bun"
poku
bun --bun ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/balanced/poku"

🦕 Deno (built-in)

  • success
  🐷 Poku (69aec7b) ran
    5.43 ± 0.17 times faster than deno
See commands
source
deno test "./test/execution/success/deno"
poku
deno run --allow-all ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/success/poku"
  • failure
  🐷 Poku (69aec7b) ran
    4.07 ± 0.11 times faster than deno
See commands
source
deno test "./test/execution/failure/deno"
poku
deno run --allow-all ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/failure/poku"
  • balanced
  🐷 Poku (69aec7b) ran
    8.64 ± 0.30 times faster than deno
See commands
source
deno test "./test/execution/balanced/deno"
poku
deno run --allow-all ./node_modules/poku/lib/bin/index.js --isolation=none "./test/execution/balanced/poku"

🧪 Assertion

Focuses solely in assertions, using each runner's own assertion API with 1 test file per runner per scenario (no file discovery involved).

  • success: 1.000 iterations × 3 assertion types (ok, strictEqual, deepStrictEqual), all passing.
  • failure: a suite of 3 tests, one per assertion type, all failing.
  • balanced: a suite of 6 tests where 3 tests will fail and 3 tests will pass.

Note: Jest, Vitest, Bun, Deno, and Node.js assertion libraries are not independently executable and require their own runtime environments. Consequently, results include the runner's startup and harness overhead in addition to assertion execution cost.


🃏 Jest

  • success
  🐷 Poku (69aec7b) ran
    6.53 ± 0.15 times faster than jest
See commands
source
node --experimental-vm-modules ./node_modules/jest/bin/jest.js "./test/assertion/success/jest.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/assertion/success/poku.spec.js"
  • failure
  🐷 Poku (69aec7b) ran
    5.45 ± 0.18 times faster than jest
See commands
source
node --experimental-vm-modules ./node_modules/jest/bin/jest.js "./test/assertion/failure/jest.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/assertion/failure/poku.spec.js"
  • balanced
  🐷 Poku (69aec7b) ran
    6.02 ± 0.14 times faster than jest
See commands
source
node --experimental-vm-modules ./node_modules/jest/bin/jest.js "./test/assertion/balanced/jest.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/assertion/balanced/poku.spec.js"

⚡️ Vitest

  • success
  🐷 Poku (69aec7b) ran
    5.44 ± 0.11 times faster than vitest
See commands
source
node ./node_modules/vitest/vitest.mjs run "./test/assertion/success/vitest.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/assertion/success/poku.spec.js"
  • failure
  🐷 Poku (69aec7b) ran
    5.03 ± 0.12 times faster than vitest
See commands
source
node ./node_modules/vitest/vitest.mjs run "./test/assertion/failure/vitest.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/assertion/failure/poku.spec.js"
  • balanced
  🐷 Poku (69aec7b) ran
    5.17 ± 0.15 times faster than vitest
See commands
source
node ./node_modules/vitest/vitest.mjs run "./test/assertion/balanced/vitest.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/assertion/balanced/poku.spec.js"

🐢 Node.js (built-in)

  • success
  🐷 Poku (69aec7b) ran
    1.06 ± 0.03 times faster than node
See commands
source
node --test "./test/assertion/success/node.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/assertion/success/poku.spec.js"
  • failure
  🐷 Poku (69aec7b) ran
    1.10 ± 0.03 times faster than node
See commands
source
node --test "./test/assertion/failure/node.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/assertion/failure/poku.spec.js"
  • balanced
  🐷 Poku (69aec7b) ran
    1.11 ± 0.06 times faster than node
See commands
source
node --test "./test/assertion/balanced/node.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/assertion/balanced/poku.spec.js"

🍞 Bun (built-in)

  • success
  bun ran
    6.54 ± 0.15 times faster than 🐷 Poku (69aec7b)
See commands
source
bun test --parallel --isolate "./test/assertion/success/bun.spec.js"
poku
bun --bun ./node_modules/poku/lib/bin/index.js "./test/assertion/success/poku.spec.js"
  • failure
  bun ran
    7.24 ± 0.39 times faster than 🐷 Poku (69aec7b)
See commands
source
bun test --parallel --isolate "./test/assertion/failure/bun.spec.js"
poku
bun --bun ./node_modules/poku/lib/bin/index.js "./test/assertion/failure/poku.spec.js"
  • balanced
  bun ran
    7.02 ± 0.10 times faster than 🐷 Poku (69aec7b)
See commands
source
bun test --parallel --isolate "./test/assertion/balanced/bun.spec.js"
poku
bun --bun ./node_modules/poku/lib/bin/index.js "./test/assertion/balanced/poku.spec.js"

🦕 Deno (built-in)

  • success
  🐷 Poku (69aec7b) ran
    7.08 ± 0.13 times faster than deno
See commands
source
deno test "./test/assertion/success/deno.test.js"
poku
deno run --allow-all ./node_modules/poku/lib/bin/index.js "./test/assertion/success/poku.spec.js"
  • failure
  🐷 Poku (69aec7b) ran
    6.93 ± 0.11 times faster than deno
See commands
source
deno test "./test/assertion/failure/deno.test.js"
poku
deno run --allow-all ./node_modules/poku/lib/bin/index.js "./test/assertion/failure/poku.spec.js"
  • balanced
  🐷 Poku (69aec7b) ran
    6.94 ± 0.08 times faster than deno
See commands
source
deno test "./test/assertion/balanced/deno.test.js"
poku
deno run --allow-all ./node_modules/poku/lib/bin/index.js "./test/assertion/balanced/poku.spec.js"

🔗 Nesting

Focuses on nested test suite overhead using describe blocks (3 levels deep, 100 suites), using Node.js assert for all runners.

  • success: 100 suites × 3-level deep nesting, all passing.
  • failure: 100 suites × 3-level deep nesting, all failing.
  • balanced: 50 suites passing + 50 suites failing.

🃏 Jest

  • success
  🐷 Poku (69aec7b) ran
    5.75 ± 0.12 times faster than jest
See commands
source
node --experimental-vm-modules ./node_modules/jest/bin/jest.js "./test/nesting/success/jest.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/nesting/success/poku.spec.js"
  • failure
  🐷 Poku (69aec7b) ran
    5.38 ± 0.18 times faster than jest
See commands
source
node --experimental-vm-modules ./node_modules/jest/bin/jest.js "./test/nesting/failure/jest.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/nesting/failure/poku.spec.js"
  • balanced
  🐷 Poku (69aec7b) ran
    5.94 ± 0.36 times faster than jest
See commands
source
node --experimental-vm-modules ./node_modules/jest/bin/jest.js "./test/nesting/balanced/jest.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/nesting/balanced/poku.spec.js"

⚡️ Vitest

  • success
  🐷 Poku (69aec7b) ran
    5.23 ± 0.22 times faster than vitest
See commands
source
node ./node_modules/vitest/vitest.mjs run "./test/nesting/success/vitest.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/nesting/success/poku.spec.js"
  • failure
  🐷 Poku (69aec7b) ran
    5.28 ± 0.23 times faster than vitest
See commands
source
node ./node_modules/vitest/vitest.mjs run "./test/nesting/failure/vitest.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/nesting/failure/poku.spec.js"
  • balanced
  🐷 Poku (69aec7b) ran
    5.48 ± 0.33 times faster than vitest
See commands
source
node ./node_modules/vitest/vitest.mjs run "./test/nesting/balanced/vitest.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/nesting/balanced/poku.spec.js"

🐢 Node.js (built-in)

  • success
  🐷 Poku (69aec7b) ran
    3.25 ± 0.20 times faster than node
See commands
source
node --test "./test/nesting/success/node.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/nesting/success/poku.spec.js"
  • failure
  🐷 Poku (69aec7b) ran
    3.92 ± 0.16 times faster than node
See commands
source
node --test "./test/nesting/failure/node.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/nesting/failure/poku.spec.js"
  • balanced
  🐷 Poku (69aec7b) ran
    3.59 ± 0.13 times faster than node
See commands
source
node --test "./test/nesting/balanced/node.spec.js"
poku
node ./node_modules/poku/lib/bin/index.js "./test/nesting/balanced/poku.spec.js"

🍞 Bun (built-in)

  • success
  bun ran
    3.00 ± 0.06 times faster than 🐷 Poku (69aec7b)
See commands
source
bun test --parallel --isolate "./test/nesting/success/bun.spec.js"
poku
bun --bun ./node_modules/poku/lib/bin/index.js "./test/nesting/success/poku.spec.js"
  • failure
  bun ran
    2.53 ± 0.13 times faster than 🐷 Poku (69aec7b)
See commands
source
bun test --parallel --isolate "./test/nesting/failure/bun.spec.js"
poku
bun --bun ./node_modules/poku/lib/bin/index.js "./test/nesting/failure/poku.spec.js"
  • balanced
  bun ran
    2.76 ± 0.10 times faster than 🐷 Poku (69aec7b)
See commands
source
bun test --parallel --isolate "./test/nesting/balanced/bun.spec.js"
poku
bun --bun ./node_modules/poku/lib/bin/index.js "./test/nesting/balanced/poku.spec.js"

🦕 Deno (built-in)

  • success
  🐷 Poku (69aec7b) ran
    2.55 ± 0.10 times faster than deno
See commands
source
deno test "./test/nesting/success/deno.test.js"
poku
deno run --allow-all ./node_modules/poku/lib/bin/index.js "./test/nesting/success/poku.spec.js"
  • failure
  🐷 Poku (69aec7b) ran
    2.35 ± 0.09 times faster than deno
See commands
source
deno test "./test/nesting/failure/deno.test.js"
poku
deno run --allow-all ./node_modules/poku/lib/bin/index.js "./test/nesting/failure/poku.spec.js"
  • balanced
  🐷 Poku (69aec7b) ran
    2.42 ± 0.08 times faster than deno
See commands
source
deno test "./test/nesting/balanced/deno.test.js"
poku
deno run --allow-all ./node_modules/poku/lib/bin/index.js "./test/nesting/balanced/poku.spec.js"

@wellwelwel
wellwelwel marked this pull request as ready for review June 10, 2026 16:26
@wellwelwel
wellwelwel merged commit b5c42e4 into main Jun 10, 2026
30 of 31 checks passed
@wellwelwel
wellwelwel deleted the list branch June 10, 2026 16:27
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.

1 participant