mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 16:18:57 +00:00
Auto-format Python scripts
This commit is contained in:
1 parent
a870d4db3d
commit
8fff8643e0
5 files changed
+23
-17
No files matched your search
@@ -9,8 +9,12 @@ import matplotlib.pyplot as plt
|
||||
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("file", help="JSON file with benchmark results", nargs="+")
|
||||
parser.add_argument("--parameter-name", metavar="name", type=str,
|
||||
help="Name of the parameter / x-axis label")
|
||||
parser.add_argument(
|
||||
"--parameter-name",
|
||||
metavar="name",
|
||||
type=str,
|
||||
help="Name of the parameter / x-axis label",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
for filename in args.file:
|
||||
@@ -21,10 +25,7 @@ for filename in args.file:
|
||||
times_mean = [b["mean"] for b in results]
|
||||
times_stddev = [b["stddev"] for b in results]
|
||||
|
||||
plt.errorbar(x=parameter_values,
|
||||
y=times_mean,
|
||||
yerr=times_stddev,
|
||||
capsize=2)
|
||||
plt.errorbar(x=parameter_values, y=times_mean, yerr=times_stddev, capsize=2)
|
||||
|
||||
plt.xlabel(args.parameter_name)
|
||||
plt.ylabel("Time [s]")
|
||||
|
||||
Reference in new issue
Block a user