@wxn0brp/db-benchmark 0.20261124.1829 → 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.
- package/README.md +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,12 +7,26 @@ See [Page](https://wxn0brp.github.io/ValtheraDB-benchmark) for details and visua
|
|
|
7
7
|
|
|
8
8
|
## Local benchmark
|
|
9
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
|
+
|
|
10
21
|
Run the benchmark against an adapter straight from the terminal:
|
|
11
22
|
|
|
12
23
|
```bash
|
|
13
24
|
valthera-bench [adapter] [options]
|
|
14
25
|
```
|
|
15
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
|
+
|
|
16
30
|
Options:
|
|
17
31
|
|
|
18
32
|
| Option | Description |
|