This repository has been archived by the owner on Dec 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
83 lines (69 loc) · 3.18 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Vlang Benchmarks Visualization</title>
<base href="/" />
<meta charset="utf-8" />
<link rel="shortcut icon" href="/favicon.png" type="image/x-icon">
<meta name="author" content="Artem Yurchenko & V community">
<meta name="description" content="Plots and statistics for Vlang benchmarks">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta property="og:title" content="Vlang Benchmarks Visualization">
<meta property="og:description" content="Plots and statistics for Vlang benchmarks">
<meta property="og:image" content="/vbv.png">
<meta name="twitter:title" content="Vlang Benchmarks Visualization">
<meta name="twitter:description" content="Plots and statistics for Vlang benchmarks">
<meta name="twitter:image" content="/vbv.png">
@css 'css/bootstrap.min.css'
@css 'css/app.css'
</head>
<body>
<header>
<img src="/v-logo.png" alt="Vlang main logo" />
<h1>Vlang Benchmarks Visualizations</h1>
<h3>Interactive plots, based on the data from the <a href="https://fast.vlang.io/" target="_blank"><em>Is V still fast?</em></a> page</h3>
</header>
<main>
<div>
<table>
<tr>
<th>Test</th>
<th>Average</th>
<th>Median</th>
</tr>
@for statistic_data in benchmark_statistic_data
<tr>
<td>@statistic_data.benchmark_name</td>
<td>@statistic_data.average_result</td>
<td>@statistic_data.median_result</td>
</tr>
@end
</table>
</div>
<div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns/dist/chartjs-adapter-date-fns.bundle.min.js"></script>
@js 'scripts/benchmark_plot_data.js'
@for benchmark_name, benchmark_plot_data in benchmarks_plot_data
<canvas id="@benchmark_name" style="width:100%;max-height:700px"></canvas>
<script>add_plot_data("@benchmark_name", @benchmark_plot_data.dates, @benchmark_plot_data.numerical_result, '@benchmark_plot_data.measure_unit');</script>
@end
@js 'scripts/benchmark_plot.js'
<script>
let date_today = new Date();
let date_two_months_ago = new Date();
date_two_months_ago = date_two_months_ago.setMonth(date_two_months_ago.getMonth() - 2);
create_plots(new Date(date_two_months_ago), date_today);
</script>
</div>
</main>
<footer>
<div>
<img src="/v-logo.png" alt="Vlang main logo" />
<p>logo by <a href="https://github.com/sonovice/" target="_blank">Sonovice</a> and <a href="https://github.com/donnisnoni/" target="_blank">Don</a>.</p>
<br />
<p><a href="https://github.com/ArtemkaKun/VlangBenchmarksVisualization" target="_blank">Repo of this app</a></p>
</div>
</footer>
</body>
</html>