@wxn0brp/db-benchmark 0.20261124.1745 → 0.20261124.1831

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +32 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -5,6 +5,38 @@ measures CRUD operation performance across adapters, runtimes, and platforms.
5
5
 
6
6
  See [Page](https://wxn0brp.github.io/ValtheraDB-benchmark) for details and visualizations.
7
7
 
8
+ ## Local benchmark
9
+
10
+ ### Install
11
+
12
+ Globally, to get the `valthera-bench` command:
13
+
14
+ ```bash
15
+ bun add -g @wxn0brp/db-benchmark
16
+ # or
17
+ npm install -g @wxn0brp/db-benchmark
18
+ ```
19
+ ### Usage
20
+
21
+ Run the benchmark against an adapter straight from the terminal:
22
+
23
+ ```bash
24
+ valthera-bench [adapter] [options]
25
+ ```
26
+
27
+ `adapter` is a path to a module whose default export is a factory returning a
28
+ ValtheraDB adapter (default: `./valthera-e2e/index.ts`).
29
+
30
+ Options:
31
+
32
+ | Option | Description |
33
+ | --- | --- |
34
+ | `-s, --small` | Run only the small collection benchmark (users, 10k) |
35
+ | `-j, --json` | Save results as JSON |
36
+ | `-f, --jsonFile <path>` | JSON output file (default: `results.json`) |
37
+ | `--no-cloud` | Skip comparison with published cloud results |
38
+ | `-h, --help` | Show help |
39
+
8
40
  ## License
9
41
 
10
42
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wxn0brp/db-benchmark",
3
- "version": "0.20261124.1745",
3
+ "version": "0.20261124.1831",
4
4
  "main": "dist/index.js",
5
5
  "description": "",
6
6
  "repository": {