Skip to content

Commit

Permalink
Benchmark: set 'NODE_ENV=production' before running the benchmarks
Browse files Browse the repository at this point in the history
Motivated by graphql#2428
  • Loading branch information
IvanGoncharov committed Feb 6, 2020
1 parent 95aa338 commit e77ab78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/benchmark-fork.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ if (require.main === module) {

function sampleModule(modulePath) {
return new Promise((resolve, reject) => {
const env = { BENCHMARK_MODULE_PATH: modulePath };
const env = {
NODE_ENV: 'production',
BENCHMARK_MODULE_PATH: modulePath,
};
const child = cp.fork(__filename, { env });
let message;
let error;
Expand Down

0 comments on commit e77ab78

Please sign in to comment.