From 3f3d29bc301cf2741ac797ab3c74ff0138dfdbaf Mon Sep 17 00:00:00 2001 From: Jeroen Vervaeke Date: Tue, 21 Oct 2025 09:49:48 +0100 Subject: [PATCH] remove unused benchmark directory --- benchmark/bench.ts | 21 --------------------- benchmark/package.json | 3 --- benchmark/tsconfig.json | 10 ---------- package.json | 1 - 4 files changed, 35 deletions(-) delete mode 100644 benchmark/bench.ts delete mode 100644 benchmark/package.json delete mode 100644 benchmark/tsconfig.json diff --git a/benchmark/bench.ts b/benchmark/bench.ts deleted file mode 100644 index 7761e87..0000000 --- a/benchmark/bench.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Bench } from 'tinybench' - -import { plus100 } from '../index.js' - -function add(a: number) { - return a + 100 -} - -const b = new Bench() - -b.add('Native a + 100', () => { - plus100(10) -}) - -b.add('JavaScript a + 100', () => { - add(10) -}) - -await b.run() - -console.table(b.table()) diff --git a/benchmark/package.json b/benchmark/package.json deleted file mode 100644 index 3dbc1ca..0000000 --- a/benchmark/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} diff --git a/benchmark/tsconfig.json b/benchmark/tsconfig.json deleted file mode 100644 index e95988d..0000000 --- a/benchmark/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "moduleResolution": "NodeNext", - "module": "NodeNext", - "outDir": "lib" - }, - "include": ["."], - "exclude": ["lib"] -} diff --git a/package.json b/package.json index 15f8b03..be30c8f 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,6 @@ }, "scripts": { "artifacts": "napi artifacts", - "bench": "node --import @oxc-node/core/register benchmark/bench.ts", "build": "napi build --platform --release --no-const-enum", "build:debug": "napi build --platform --no-const-enum", "format": "run-p format:prettier format:rs format:toml",