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",