mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
feat(perf): accelerate load test signing with WASM
Replaces pure JS `finalizeEvent` with `nostr-tools/wasm` implementation in `scripts/agent/load-test.mjs`. This reduces signing time from ~6ms to ~1ms per event (5x-6x speedup), significantly increasing the event generation throughput capacity of the load test agent. - Adds `nostr-wasm` to devDependencies. - Updates `scripts/agent/load-test.mjs` to initialize and use WASM crypto. - Adds `benchmarks/signing_benchmark.mjs` to verify performance gains. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
74d15f2946
commit
1569ce074f
4 files changed
+99
-26
No files matched your search
@@ -41,6 +41,7 @@
|
||||
"@playwright/test": "^1.58.2",
|
||||
"fake-indexeddb": "^6.2.5",
|
||||
"jsdom": "^28.0.0",
|
||||
"nostr-wasm": "^0.1.0",
|
||||
"pixelmatch": "^5.3.0",
|
||||
"playwright": "^1.58.2",
|
||||
"pngjs": "^7.0.0",
|
||||
|
||||
Reference in new issue
Block a user