Skip to content

Commit 1d50c54

Browse files
committed
switch to benchmark-runner
1 parent d55d0af commit 1d50c54

16 files changed

+2360
-2
lines changed

.github/workflows/plot.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111

1212
jobs:
1313
generate-timing-plots:
14-
runs-on: ubuntu-latest
14+
runs-on: benchmark-runner
1515
steps:
1616
- name: Checkout repository
1717
uses: actions/checkout@v3
@@ -23,6 +23,11 @@ jobs:
2323
cache: 'pip' # caching pip dependencies
2424
- run: pip install -r requirements.txt
2525

26+
- name: Set up racket
27+
uses: raco-lang/setup-racket@v1
28+
with:
29+
version: '8.6' # specify the Racket version you need
30+
2631
- name: Run plot generation script
2732
run: |
2833
python3 generate_plot.py
@@ -34,3 +39,4 @@ jobs:
3439
git add .
3540
git commit -m "Update timing plots [skip ci]" || echo "No changes to commit"
3641
git push
42+

alarm.png

19.5 KB
Loading

bench_test1.png

24.7 KB
Loading

bench_test2.png

27 KB
Loading

generate_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
plt.legend()
3232
plt.xticks(rotation=45)
3333
plt.tight_layout()
34-
plt.savefig(f"{filename[:-5]}_timing.png")
34+
plt.savefig(f"{filename[:-5]}.png")

summary.scribl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#lang scribble/manual
2+
@(require racket/path
3+
racket/file
4+
racket/list
5+
scribble/base)
6+
7+
@title{Benchmarking results summary}
8+
9+
@(define pngs
10+
(for/list ([p (in-directory ".")]
11+
#:when (regexp-match? #rx"\\.png$" (path->string p)))
12+
p))
13+
14+
@itemlist[
15+
@(for/list ([p pngs])
16+
@item{@bold{@(path->string (path-replace-suffix (file-name-from-path p) ""))}
17+
@linebreak[]
18+
@image[#:scale 1]{@(path->string p)}})]

summary/alarm.png

19.5 KB
Loading

summary/bench_test1.png

24.7 KB
Loading

summary/bench_test2.png

27 KB
Loading

summary/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2+
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width, initial-scale=0.8"/><title>Benchmarking results summary</title><link rel="stylesheet" type="text/css" href="scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="manual-racket.css" title="default"/><script type="text/javascript" src="scribble-common.js"></script><script type="text/javascript" src="manual-racket.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="scribble-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;">&bull;</td><td></td><td><a href="" class="tocviewselflink" data-pltdoc="x">Benchmarking results summary</a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber"></span><a href="#%28part._.Benchmarking_results_summary%29" class="tocsubseclink" data-pltdoc="x">Benchmarking results summary</a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="versionbox"><span class="version">8.15</span></div><div class="navsettop"><span class="navleft"><div class="nosearchform"></div>&nbsp;&nbsp;<span class="tocsettoggle">&nbsp;&nbsp;<a href="javascript:void(0);" title="show/hide table of contents" onclick="TocsetToggle();">contents</a></span></span>&nbsp;</div><h2 class="heading"><a name="(part._.Benchmarking_results_summary)"></a>Benchmarking results summary<span class="button-group"><a href="#(part._.Benchmarking_results_summary)" class="heading-anchor" title="Link to here">🔗</a><span style="visibility: hidden"> </span></span></h2><ul><li><p><span style="font-weight: bold">alarm</span>
3+
<br/>
4+
<img src="alarm.png" alt="" width="640" height="480"/></p></li><li><p><span style="font-weight: bold">bench_test1</span>
5+
<br/>
6+
<img src="bench_test1.png" alt="" width="640" height="480"/></p></li><li><p><span style="font-weight: bold">bench_test2</span>
7+
<br/>
8+
<img src="bench_test2.png" alt="" width="640" height="480"/></p></li><li><p><span style="font-weight: bold">alarm</span>
9+
<br/>
10+
<img src="alarm.png" alt="" width="640" height="480"/></p></li><li><p><span style="font-weight: bold">bench_test1</span>
11+
<br/>
12+
<img src="bench_test1.png" alt="" width="640" height="480"/></p></li><li><p><span style="font-weight: bold">bench_test2</span>
13+
<br/>
14+
<img src="bench_test2.png" alt="" width="640" height="480"/></p></li></ul><div class="navsetbottom"><span class="navleft"><div class="nosearchform"></div>&nbsp;&nbsp;<span class="tocsettoggle">&nbsp;&nbsp;<a href="javascript:void(0);" title="show/hide table of contents" onclick="TocsetToggle();">contents</a></span></span>&nbsp;</div></div></div><div id="contextindicator">&nbsp;</div></body></html>

0 commit comments

Comments
 (0)