commit | 2e734a52b5556f47cfd8ee560763dbd351a08680 | [log] [tgz] |
---|---|---|
author | Denis Nikitin <denik@google.com> | Wed Aug 26 11:00:10 2020 -0700 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Aug 27 02:51:18 2020 +0000 |
tree | c7ef1dfc742c6a66706500257060562aae72bd1f | |
parent | 5d21b27e2ed16db964d947a0a09fa156522a632d [diff] |
crosperf: replace statistics stdev with pstdev Behavior and results of statistics.stdev(data) are slightly different from numpy.std(data) with default "ddof". The main difference is the divisor which is "N - 1" in stdev vs. "N" in numpy.std. As a consequence stdev fails with "N=1". The change replaces stdev with pstdev (population standard deviation) which is equivalent to numpy.std with default arguments that we were using. Added unittest with StdResult testing. BUG=None TEST=unittest and crosperf with one iteration passes. Change-Id: I70c7105e6cabc27437504de16ea27afdd719e552 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2376880 Reviewed-by: George Burgess <gbiv@chromium.org> Tested-by: Denis Nikitin <denik@chromium.org> Commit-Queue: Denis Nikitin <denik@chromium.org>
toolchain-utils
Various utilities used by the Chrome OS toolchain team.
To run Python scripts in this directory, first run:
export PYTHONPATH=$(readlink -f .):$PYTHONPATH
from this directory.
Then you can run any script.
To get help on any script, type in python <script> --help
, or refer to the header of the script for more information.