You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository is intended to be included as a submodule in another repository. This allows you to run benchmarks against local changes in that repository. The `dev` script in this repository starts a benchmarking dev server that is useful when benchmarking changes in another repository.
61
+
62
+
```
63
+
$ pnpm dev --help
64
+
65
+
Description
66
+
Run a dev server to interactively run a benchmark while developing changes
67
+
68
+
Usage
69
+
$ preact-bench dev [benchmark_file] [options]
70
+
71
+
Options
72
+
--interactive Prompt for options (default false)
73
+
-d, --dependency What group of dependencies (comma-delimited) and version to
74
+
use for a run of the benchmark (package@version) (default latest)
75
+
-i, --impl What implementation of the benchmark to run (default preact-class)
76
+
-n, --sample-size Minimum number of times to run each benchmark (default 25)
77
+
-h, --horizon The degrees of difference to try and resolve when auto-sampling
78
+
("N%" or "Nms", comma-delimited) (default 5%)
79
+
-t, --timeout Maximum number of minutes to spend auto-sampling (default 1)
-p, --port What port to run the benchmark server on (default 5173)
85
+
-h, --help Displays this message
86
+
87
+
Examples
88
+
$ preact-bench dev apps/todo/todo.html -d preact@local -d preact@main -i preact-hooks
89
+
$ preact-bench dev apps/todo/todo.html -d preact@local -d preact@local-pinned -i preact-hooks
90
+
```
91
+
92
+
This command shares the same options as the `bench` command. Once you start the server you can press `b⏎` to re-build your local Preact repository (or whatever repository this is within) and re-run the configured benchmarks.
➜ press p + enter Pin current local changes into local-pinned
103
+
➜ press b + enter run Benchmarks
104
+
➜ press h + enter show help
105
+
106
+
```
107
+
108
+
You can also press the `p⏎` key to build your local repos changes and copy them into the relevant `local-pinned` directory. This command is useful when you want to compare different local changes against each other.
"Run the given benchmark using the specified implementation with the specified dependencies. If no benchmark file, no dependencies, or no implementations are specified, will prompt for one.",
0 commit comments