|
@ -26,7 +26,7 @@ const runner = instances => (options = {}) => { |
|
|
if (RunInstances.length !== instances.length) |
|
|
if (RunInstances.length !== instances.length) |
|
|
throw new Error (`Not all instances were of type ${type}`); |
|
|
throw new Error (`Not all instances were of type ${type}`); |
|
|
|
|
|
|
|
|
const perf = { start: Date.now() }; |
|
|
const perf = { start: new Date() }; |
|
|
|
|
|
|
|
|
return Promise.all(RunInstances.map(instance => { |
|
|
return Promise.all(RunInstances.map(instance => { |
|
|
return ( |
|
|
return ( |
|
@ -35,7 +35,7 @@ const runner = instances => (options = {}) => { |
|
|
); |
|
|
); |
|
|
})) |
|
|
})) |
|
|
.then(results => { |
|
|
.then(results => { |
|
|
perf.end = Date.now(); |
|
|
perf.end = new Date(); |
|
|
results.start = perf.start.toUTCString(); |
|
|
results.start = perf.start.toUTCString(); |
|
|
results.end = perf.end.toUTCString(); |
|
|
results.end = perf.end.toUTCString(); |
|
|
results.duration = perf.end - perf.start; |
|
|
results.duration = perf.end - perf.start; |
|
|