| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f194626 commit 5008b46
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,6 +25,10 @@ function Benchmark(fn, configs, options) { | |||
| 25 | 25 | if (options && options.flags) { | |
| 26 | 26 | this.flags = this.flags.concat(options.flags); | |
| 27 | 27 | } | |
| 28 | + if (process.env.NODE_BENCHMARK_FLAGS) { | ||
| 29 | + const flags = process.env.NODE_BENCHMARK_FLAGS.split(/\s+/); | ||
| 30 | + this.flags = this.flags.concat(flags); | ||
| 31 | + } | ||
| 28 | 32 | // Holds process.hrtime value | |
| 29 | 33 | this._time = [0, 0]; | |
| 30 | 34 | // Used to make sure a benchmark only start a timer once | |
| Back | FazBrowse Home | New Git URL |
0 commit comments