Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmarking #122

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions benches/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dist/
results/
logs/
logs-saved/
node_modules/
proxy-packages/*/package-lock.json
11 changes: 11 additions & 0 deletions benches/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"target": "es2020",
"checkJs": true,
"moduleResolution": "node"
},
"exclude": [
"node_modules",
"dist"
]
}
30 changes: 30 additions & 0 deletions benches/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "preact-signals-benchmarks",
"private": true,
"version": "1.0.0",
"type": "module",
"description": "Benchmarks for @preact/signals",
"scripts": {
"start": "node ./scripts config basic.html && tach --force-clean-npm-install --config dist/basic.config.json --manual",
"analyze": "node ./scripts analyze",
"bench": "node ./scripts bench",
"deopts": "node ./scripts deopts",
"help": "node ./scripts --help"
},
"license": "MIT",
"dependencies": {
"afterframe": "^1.0.2"
},
"devDependencies": {
"@kristoferbaxter/async": "^1.0.0",
"del": "^6.0.0",
"escalade": "^3.0.2",
"escape-string-regexp": "^4.0.0",
"globby": "^11.0.0",
"prompts": "^2.4.0",
"sade": "^1.7.3",
"strip-ansi": "^6.0.0",
"tachometer": "^0.7.0",
"v8-deopt-viewer": "^0.2.1"
}
}
1 change: 1 addition & 0 deletions benches/proxy-packages/signals-local-proxy/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "@preact/signals";
11 changes: 11 additions & 0 deletions benches/proxy-packages/signals-local-proxy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "preact-signals-local-proxy",
"private": true,
"version": "0.0.0",
"type": "module",
"main": "index.js",
"dependencies": {
"@preact/signals": "file:../../../packages/preact",
"preact": "^10.10.6"
}
}
1 change: 1 addition & 0 deletions benches/proxy-packages/signals-master-proxy/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "@preact/signals";
11 changes: 11 additions & 0 deletions benches/proxy-packages/signals-master-proxy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "signals-proxy",
"private": true,
"version": "0.0.0",
"type": "module",
"main": "index.js",
"dependencies": {
"@preact/signals": "file:../../../preact-signals.tgz",
"preact": "^10.10.6"
}
}
Loading