Skip to content
Myr

Use doc-comment for advanced_statistics.py script

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent 0cc0fb2 · Browse files · 1 file+9 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−9 removed

  • other:+9 added−9 removed

1 file+9 added−9 removed

modified:scripts/plot_benchmark_results.py+9 added-9 removed
1#!/usr/bin/python2#3# This script `hyperfine` benchmark results as a box and whisker plot.4#5# Quoting from the matplotlib documentation:6# The box extends from the lower to upper quartile values of the data, with7# a line at the median. The whiskers extend from the box to show the range8# of the data. Flier points are those past the end of the whiskers.9#23"""This program shows `hyperfine` benchmark results as a box and whisker plot.45Quoting from the matplotlib documentation:6 The box extends from the lower to upper quartile values of the data, with7 a line at the median. The whiskers extend from the box to show the range8 of the data. Flier points are those past the end of the whiskers.9"""1011import argparse12import json13import matplotlib.pyplot as plt1415parser = argparse.ArgumentParser()15parser = argparse.ArgumentParser(description=__doc__)16parser.add_argument("file", help="JSON file with benchmark results")17args = parser.parse_args()1819with open(args.file) as f:
9 unmodified lines