diff --git a/assets/benchmarks.svg b/assets/benchmarks.svg index ec97308bf..8f88726ee 100644 --- a/assets/benchmarks.svg +++ b/assets/benchmarks.svg @@ -1,12 +1,12 @@ - + - 2023-07-02T10:22:25.747478 + 2023-07-02T10:26:03.603777 image/svg+xml @@ -21,19 +21,19 @@ - - @@ -41,17 +41,17 @@ z - - + - + - + - + - + @@ -384,7 +384,7 @@ z - + - + - + @@ -449,7 +449,7 @@ z - + - + - + - + - + @@ -548,41 +548,41 @@ z - + - - + - + - + - + - + - + - + - + @@ -636,18 +636,18 @@ L 525.96 199.6506 - + - + - + @@ -655,18 +655,18 @@ L 525.96 143.5679 - + - + - + - + - + - + @@ -735,7 +735,7 @@ L 525.96 31.4025 - + - + - +" clip-path="url(#p1524463ec4)" style="fill: #b3e6a8; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3e6a8; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3e6a8; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3e6a8; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3e6a8; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> +" clip-path="url(#p1524463ec4)" style="fill: url(#ha2153f56ba); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: url(#ha2153f56ba); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: url(#ha2153f56ba); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> +" clip-path="url(#p1524463ec4)" style="fill: url(#ha2153f56ba); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: url(#ha2153f56ba); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3d1e6; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3d1e6; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3d1e6; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3d1e6; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3d1e6; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> +" clip-path="url(#p1524463ec4)" style="fill: url(#hf84519ceb2); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: url(#hf84519ceb2); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: url(#hf84519ceb2); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> +" clip-path="url(#p1524463ec4)" style="fill: url(#hf84519ceb2); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: url(#hf84519ceb2); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - - - - - + - + @@ -1301,7 +1301,7 @@ z - + @@ -1309,7 +1309,7 @@ z - + @@ -1317,7 +1317,7 @@ z - + @@ -1325,7 +1325,7 @@ z - + @@ -1333,7 +1333,7 @@ z - + @@ -1341,7 +1341,7 @@ z - + - + @@ -1389,7 +1389,7 @@ z - + @@ -1397,7 +1397,7 @@ z - + @@ -1405,7 +1405,7 @@ z - + @@ -1413,7 +1413,7 @@ z - + @@ -1421,7 +1421,7 @@ z - + @@ -1429,7 +1429,7 @@ z - + @@ -1437,172 +1437,172 @@ z - + - +" clip-path="url(#p1524463ec4)" style="fill: #b3e6a8; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3e6a8; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3e6a8; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3e6a8; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3e6a8; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> +" clip-path="url(#p1524463ec4)" style="fill: url(#ha2153f56ba); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: url(#ha2153f56ba); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: url(#ha2153f56ba); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> +" clip-path="url(#p1524463ec4)" style="fill: url(#ha2153f56ba); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: url(#ha2153f56ba); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3d1e6; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3d1e6; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3d1e6; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3d1e6; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: #b3d1e6; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> +" clip-path="url(#p1524463ec4)" style="fill: url(#hf84519ceb2); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: url(#hf84519ceb2); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: url(#hf84519ceb2); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> +" clip-path="url(#p1524463ec4)" style="fill: url(#hf84519ceb2); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - +" clip-path="url(#p1524463ec4)" style="fill: url(#hf84519ceb2); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - - - + - + - + @@ -1733,17 +1733,17 @@ z - - - + - + @@ -1808,7 +1808,7 @@ z - + @@ -1829,7 +1829,7 @@ z - + - + - - - + + - - + + - - + @@ -1983,16 +1983,16 @@ z - +" style="fill: #b3e6a8; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - + @@ -2000,16 +2000,16 @@ z - +" style="fill: url(#ha2153f56ba); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - + @@ -2022,16 +2022,16 @@ z - +" style="fill: #b3d1e6; stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - + @@ -2040,16 +2040,16 @@ z - +" style="fill: url(#hf84519ceb2); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: miter"/> - + @@ -2066,1029 +2066,69 @@ z - - + + - + - - + - diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py index 67cafc626..06f0eebf0 100755 --- a/benchmark/benchmark.py +++ b/benchmark/benchmark.py @@ -114,9 +114,9 @@ def show_stats(dirnames): from matplotlib import rc - rc("font", **{"family": "sans-serif", "sans-serif": ["Helvetica"], "size": 13}) + rc("font", **{"family": "sans-serif", "sans-serif": ["Helvetica"], "size": 10}) - fig, ax = plt.subplots(figsize=(7.5, 5)) + fig, ax = plt.subplots(figsize=(6, 4)) ax.grid(axis="y", zorder=0, lw=0.2) zorder = 1 @@ -135,7 +135,7 @@ def show_stats(dirnames): if zorder > 1: edge = dict( edgecolor="#ffffff", - linewidth=2.5, + linewidth=1.5, ) else: edge = dict() @@ -143,7 +143,7 @@ def show_stats(dirnames): edge["label"] = fmt color = "#b3e6a8" if "diff" in fmt else "#b3d1e6" - hatch = "*" if "func" in fmt else "" + hatch = "//" if "func" in fmt else "" rects = ax.bar( pos + i * width, df[fmt], @@ -154,7 +154,7 @@ def show_stats(dirnames): **edge, ) if zorder == 2: - ax.bar_label(rects, padding=4, labels=[f"{v:.0f}%" for v in df[fmt]], size=10) + ax.bar_label(rects, padding=4, labels=[f"{v:.0f}%" for v in df[fmt]], size=6) if len(repeats): ax.errorbar(