mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Previously the benchmark script would throw an error if asked to take just 1 sample. Now it works, though the stats returned are of dubious use. The problem was that it was impossible to calculate the standard deviation or margin of error of a set of 1. Instead it now returns zero for both of those values in the single-sample case, which is what it would return for two identical samples.