Skip to content

Commit ca2eb74

Browse files
committed
add run fixture & chart dist
1 parent dccdc5a commit ca2eb74

File tree

4 files changed

+95
-0
lines changed

4 files changed

+95
-0
lines changed

chart/chartist.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chart/chartist.min.js

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chart/index.html

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Benchmark</title>
5+
<link rel="stylesheet" href="/chartist.min.css">
6+
<script src="/chartist.min.js"></script>
7+
<style type="text/css">
8+
:root {
9+
--npm: #cb0606;
10+
--yarn: #117cad;
11+
--pnpm: #f9ad00;
12+
--yarn2: #9555bb;
13+
--deno: #70ffaf;
14+
--bun: #f472b6;
15+
--vlt: #000000;
16+
}
17+
18+
.ct-chart {
19+
width: 100%;
20+
height: 800px;
21+
}
22+
/* npm */
23+
.ct-series-a .ct-bar, .ct-series-a .ct-line, .ct-series-a .ct-point, .ct-series-a .ct-slice-donut {
24+
stroke: var(--npm);
25+
}
26+
/* pnpm */
27+
.ct-series-b .ct-bar, .ct-series-b .ct-line, .ct-series-b .ct-point, .ct-series-b .ct-slice-donut {
28+
stroke: var(--pnpm);
29+
}
30+
/* yarn */
31+
.ct-series-c .ct-bar, .ct-series-c .ct-line, .ct-series-c .ct-point, .ct-series-c .ct-slice-donut {
32+
stroke: var(--yarn);
33+
}
34+
/* yarn v2+ */
35+
.ct-series-d .ct-bar, .ct-series-d .ct-line, .ct-series-d .ct-point, .ct-series-d .ct-slice-donut {
36+
stroke: var(--yarn2);
37+
}
38+
/* deno */
39+
.ct-series-e .ct-bar, .ct-series-e .ct-line, .ct-series-e .ct-point, .ct-series-e .ct-slice-donut {
40+
stroke: var(--deno);
41+
}
42+
/* bun */
43+
.ct-series-f .ct-bar, .ct-series-f .ct-line, .ct-series-f .ct-point, .ct-series-f .ct-slice-donut {
44+
stroke: var(--bun);
45+
}
46+
/* vlt */
47+
.ct-series-g .ct-bar, .ct-series-g .ct-line, .ct-series-g .ct-point, .ct-series-g .ct-slice-donut {
48+
stroke: var(--vlt);
49+
}
50+
</style>
51+
</head>
52+
<body>
53+
<div class="ct-chart ct-perfect-fourth"></div>
54+
<script defer>
55+
var data = {
56+
labels: ['Linux (Next)', 'Linux (Vue)', 'Linux (Astro)', 'Linux (Svelte)'],
57+
series: [
58+
[5, 4, 3, 7],
59+
[3, 2, 9, 5],
60+
[3, 2, 9, 5],
61+
[3, 2, 9, 5],
62+
[3, 2, 9, 5],
63+
[3, 2, 9, 5],
64+
[3, 2, 9, 5]
65+
]
66+
};
67+
68+
var options = {
69+
seriesBarDistance: 10
70+
};
71+
72+
new Chartist.Bar('.ct-chart', data, options);
73+
</script>
74+
</body>
75+
</html>

run/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "run",
3+
"version": "1.0.0",
4+
"private": false,
5+
"scripts": {
6+
"test": "echo \"benchmarking script execution...\""
7+
},
8+
"license": "MIT"
9+
}

0 commit comments

Comments
 (0)