Skip to content

Commit

Permalink
benchmark: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Nov 22, 2024
1 parent 495246b commit 6558eaf
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 27 deletions.
73 changes: 56 additions & 17 deletions benchmark/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions benchmark/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
{
"name": "benchmark",
"private": true,
"version": "0.1.0",
"description": "benchmarks",
"main": "index.js",
"type": "module",
"scripts": {
"bench": "node index.js"
},
"keywords": [],
"author": "",
"license": "MIT",
"dependencies": {
"@noble/ciphers": "file:.."
},
"devDependencies": {
"@chainsafe/as-chacha20poly1305": "0.1.0",
"@devtomio/sodium": "0.3.0",
"@noble/ciphers": "file:noble-ciphers.tgz",
"@stablelib/aes": "1.0.1",
"@stablelib/chacha": "1.0.1",
"@stablelib/chacha20poly1305": "1.0.1",
Expand All @@ -29,5 +25,6 @@
"aes-js": "3.1.2",
"libsodium-wrappers": "0.7.11",
"tweetnacl": "1.0.3"
}
},
"version": ""
}
3 changes: 2 additions & 1 deletion build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"esbuild": "0.20.1"
},
"scripts": {
"build:release": "npx esbuild --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`"
"build:release": "npx esbuild --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`",
"build:min": "npx esbuild --minify --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"bench": "node benchmark/aead.js noble && node benchmark/ciphers.js noble",
"bench:all": "node benchmark/{aead,ciphers,poly}.js",
"bench:install": "npm pack && mv *.tgz benchmark/noble-ciphers.tgz && cd benchmark && npm install && cd ..",
"bench:install": "cd benchmark; npm install; npm install .. --install-links",
"build": "npm run build:clean; tsc && tsc -p tsconfig.esm.json",
"build:release": "cd build && npm i && npm run build:release",
"build:clean": "rm *.{js,d.ts,js.map,d.ts.map} esm/*.{js,d.ts,js.map,d.ts.map} 2> /dev/null",
Expand Down

0 comments on commit 6558eaf

Please sign in to comment.