| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -183,6 +183,17 @@ The `compare.js` tool will then produce a csv file with the benchmark results. | |||
| 183 | 183 | $ node benchmark/compare.js --old ./node-master --new ./node-pr-5134 string_decoder > compare-pr-5134.csv | |
| 184 | 184 | ``` | |
| 185 | 185 | ||
| 186 | + *Tips: there are some useful options of `benchmark/compare.js`. For example, if you want to compare the benchmark of a single script instead of a whole module, you can use the `--filter` option:* | ||
| 187 | + | ||
| 188 | + ```console | ||
| 189 | + --new ./new-node-binary new node binary (required) | ||
| 190 | + --old ./old-node-binary old node binary (required) | ||
| 191 | + --runs 30 number of samples | ||
| 192 | + --filter pattern string to filter benchmark scripts | ||
| 193 | + --set variable=value set benchmark variable (can be repeated) | ||
| 194 | + --no-progress don't show benchmark progress indicator | ||
| 195 | + ``` | ||
| 196 | + | ||
| 186 | 197 | For analysing the benchmark results use the `compare.R` tool. | |
| 187 | 198 | ||
| 188 | 199 | ```console | |
| Back | FazBrowse Home | New Git URL |
0 commit comments