diff --git a/README.md b/README.md index a060522..cb10c53 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ deno add @poolifier/tatami-ng Deno versions >= 1.40.x are supported. -The `--allow-hrtime` permission flag is recommended to allow high-resolution time measurement. +The `--allow-hrtime` permission flag is recommended to allow high-resolution time measurement with Deno v1.x.x. ### Bun @@ -155,7 +155,7 @@ npm install tatami-ng -g ### Deno ```shell -deno install -g --allow-read --allow-run --allow-sys --allow-hrtime -n tatami npm:tatami-ng +deno install -g --allow-read --allow-run --allow-sys -n tatami npm:tatami-ng ``` ### Bun diff --git a/package.json b/package.json index 3b18a23..df8eb93 100644 --- a/package.json +++ b/package.json @@ -38,11 +38,11 @@ "bundle": "bun bundle.ts", "test": "run-s test:*", "test:node": "node tests/test.js", - "test:deno": "deno run --allow-sys --allow-hrtime tests/test.js && deno run --allow-sys --allow-hrtime tests/test.ts", + "test:deno": "deno run --allow-sys tests/test.js && deno run --allow-sys tests/test.ts", "test:bun": "bun tests/test.js && bun tests/test.ts", "build:cli": "run-s build:cli:*", "build:cli:node": "npx --yes rimraf ./dist/node/tatami && npx --yes mkdirp ./dist/node && node --experimental-sea-config sea-config.json && npx --yes ncp $(volta which node || n which lts || nvm which node || command -v node) ./dist/node/tatami && npx --yes postject ./dist/node/tatami NODE_SEA_BLOB ./dist/node/tatami.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 && npx --yes rimraf ./dist/node/tatami.blob", - "build:cli:deno": "deno run --allow-env --allow-read --allow-write npm:rimraf tatami && deno compile --allow-read --allow-run --allow-sys --allow-hrtime --output=./dist/deno/tatami ./cli.js", + "build:cli:deno": "deno run --allow-env --allow-read --allow-write npm:rimraf tatami && deno compile --allow-read --allow-run --allow-sys --output=./dist/deno/tatami ./cli.js", "build:cli:bun": "bunx rimraf ./dist/bun/tatami && bun build --compile --minify --sourcemap ./cli.js --outfile ./dist/bun/tatami" }, "dependencies": { diff --git a/tests/test.js b/tests/test.js index d79fc10..0545971 100644 --- a/tests/test.js +++ b/tests/test.js @@ -5,7 +5,7 @@ bench('noop', () => {}, { after: () => {}, }) bench('async noop', async () => {}) -baseline('aaa', () => {}) +baseline('baseline noop', () => {}) bench('async noop2', async () => Promise.resolve()) bench('error', () => { throw new Error('error') @@ -20,7 +20,7 @@ group(() => { }) group('group', () => { - baseline('baseline', () => {}) + baseline('baseline noop', () => {}) bench('Date.now()', () => { Date.now() }) diff --git a/tests/test.ts b/tests/test.ts index d79fc10..0545971 100644 --- a/tests/test.ts +++ b/tests/test.ts @@ -5,7 +5,7 @@ bench('noop', () => {}, { after: () => {}, }) bench('async noop', async () => {}) -baseline('aaa', () => {}) +baseline('baseline noop', () => {}) bench('async noop2', async () => Promise.resolve()) bench('error', () => { throw new Error('error') @@ -20,7 +20,7 @@ group(() => { }) group('group', () => { - baseline('baseline', () => {}) + baseline('baseline noop', () => {}) bench('Date.now()', () => { Date.now() })