Skip to content

Commit 8b470f4

Browse files
authored
improve benchmark (#1533)
1 parent 41f1528 commit 8b470f4

22 files changed

+493
-268
lines changed

.github/workflows/perf.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ env:
1212
EXPERIMENT_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
1313
CONTROL_BRANCH_NAME: 'main'
1414
FIDELITY: 100
15+
THROTTLE: 2
1516
FORK_NAME: ${{ github.event.pull_request.head.repo.full_name }}
1617

1718
jobs:
1819
master-krausest-comparison:
1920
name: Glimmer Krausest Benchmark
2021
runs-on: ubuntu-latest
21-
timeout-minutes: 20
22+
timeout-minutes: 35
2223
steps:
2324
- uses: actions/checkout@v4
2425
with:
@@ -30,6 +31,9 @@ jobs:
3031
- name: RUN
3132
run: pnpm run benchmark:setup
3233

34+
- name: Remove unused artifacts
35+
run: rm -rf ./tracerbench-results/traces && rm -rf ./tracerbench-results/traces.zip
36+
3337
- name: Upload Tracerbench Artifacts
3438
if: failure() || success()
3539
uses: actions/upload-artifact@v3

benchmark/.eslintrc.cjs

-117
This file was deleted.

benchmark/benchmarks/krausest/index.html

+167
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,173 @@
44
<meta charset="UTF-8" />
55
<title>krausest benchmark</title>
66
</head>
7+
<style>
8+
/* http://meyerweb.com/eric/tools/css/reset/
9+
v2.0 | 20110126
10+
License: none (public domain)
11+
*/
12+
13+
html,
14+
body,
15+
div,
16+
span,
17+
applet,
18+
object,
19+
iframe,
20+
h1,
21+
h2,
22+
h3,
23+
h4,
24+
h5,
25+
h6,
26+
p,
27+
blockquote,
28+
pre,
29+
a,
30+
abbr,
31+
acronym,
32+
address,
33+
big,
34+
cite,
35+
code,
36+
del,
37+
dfn,
38+
em,
39+
img,
40+
ins,
41+
kbd,
42+
q,
43+
s,
44+
samp,
45+
small,
46+
strike,
47+
strong,
48+
sub,
49+
sup,
50+
tt,
51+
var,
52+
b,
53+
u,
54+
i,
55+
center,
56+
dl,
57+
dt,
58+
dd,
59+
ol,
60+
ul,
61+
li,
62+
fieldset,
63+
form,
64+
label,
65+
legend,
66+
table,
67+
caption,
68+
tbody,
69+
tfoot,
70+
thead,
71+
tr,
72+
th,
73+
td,
74+
article,
75+
aside,
76+
canvas,
77+
details,
78+
embed,
79+
figure,
80+
figcaption,
81+
footer,
82+
header,
83+
hgroup,
84+
menu,
85+
nav,
86+
output,
87+
ruby,
88+
section,
89+
summary,
90+
time,
91+
mark,
92+
audio,
93+
video {
94+
margin: 0;
95+
padding: 0;
96+
border: 0;
97+
font-size: 100%;
98+
font: inherit;
99+
vertical-align: baseline;
100+
}
101+
h1 {
102+
font-family: Arial;
103+
font-size: 28px;
104+
}
105+
/* HTML5 display-role reset for older browsers */
106+
article,
107+
aside,
108+
details,
109+
figcaption,
110+
figure,
111+
footer,
112+
header,
113+
hgroup,
114+
menu,
115+
nav,
116+
section {
117+
display: block;
118+
}
119+
body {
120+
line-height: 1;
121+
}
122+
ol,
123+
ul {
124+
list-style: none;
125+
}
126+
blockquote,
127+
q {
128+
quotes: none;
129+
}
130+
blockquote:before,
131+
blockquote:after,
132+
q:before,
133+
q:after {
134+
content: "";
135+
content: none;
136+
}
137+
table {
138+
border-collapse: collapse;
139+
border-spacing: 0;
140+
}
141+
142+
.jumbotron {
143+
background-color: #7b7;
144+
}
145+
.btn {
146+
width: 200px;
147+
}
148+
.table {
149+
table-layout: fixed;
150+
font-family: Arial;
151+
font-size: 15px;
152+
}
153+
.table tr {
154+
height: 20px;
155+
border-top: 1px solid #000;
156+
border-bottom: 1px solid #000;
157+
}
158+
.table td.col-md-1 {
159+
width: 50px;
160+
}
161+
.table td.col-md-4 {
162+
width: 350px;
163+
}
164+
.table td.col-md-6 {
165+
width: 400px;
166+
}
167+
.glyphicon-remove:after {
168+
content: "x";
169+
}
170+
tr.danger td {
171+
background-color: #faa;
172+
}
173+
</style>
7174
<script type="module">
8175
import run from "./browser.js";
9176
run();
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,52 @@
11
<div class="container">
2-
<table class="table table-hover table-striped test-data"><tbody>
3-
{{#each @items as |item|}}<Row @select={{this.select}} @item={{item}} />{{/each}}
4-
</tbody></table>
5-
<span className="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
2+
<div class="jumbotron">
3+
<div class="row">
4+
<div class="col-md-6">
5+
<h1>Glimmer-VM</h1>
6+
</div>
7+
<div class="col-md-6">
8+
<div class="row">
9+
<div class="col-sm-6 smallpad">
10+
<BsButton id="run" {{on "click" this.create}}>
11+
Create 1,000 rows
12+
</BsButton>
13+
</div>
14+
<div class="col-sm-6 smallpad">
15+
<BsButton id="runlots" {{on "click" this.runLots}}>
16+
Create 10,000 rows
17+
</BsButton>
18+
</div>
19+
<div class="col-sm-6 smallpad">
20+
<BsButton id="add" {{on "click" this.add}}>
21+
Append 1,000 rows
22+
</BsButton>
23+
</div>
24+
<div class="col-sm-6 smallpad">
25+
<BsButton id="update" {{on "click" this.update}}>
26+
Update every 10th row
27+
</BsButton>
28+
</div>
29+
<div class="col-sm-6 smallpad">
30+
<BsButton id="clear" {{on "click" this.clear}}>
31+
Clear
32+
</BsButton>
33+
</div>
34+
<div class="col-sm-6 smallpad">
35+
<BsButton id="swaprows" {{on "click" this.swapRows}}>
36+
Swap Rows
37+
</BsButton>
38+
</div>
39+
</div>
40+
</div>
41+
</div>
42+
</div>
43+
44+
<table class="table table-hover table-striped test-data">
45+
<tbody>
46+
{{#each this.items as |item|}}
47+
<Row @select={{this.select}} @remove={{this.remove}} @item={{item}} />
48+
{{/each}}
49+
</tbody>
50+
</table>
51+
<span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
652
</div>

benchmark/benchmarks/krausest/lib/components/Application.js

-23
This file was deleted.

0 commit comments

Comments
 (0)