-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinteractive_benchmark_inference_latency_p95.html
More file actions
33 lines (33 loc) · 1.42 KB
/
interactive_benchmark_inference_latency_p95.html
File metadata and controls
33 lines (33 loc) · 1.42 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Inference Latency P95</title>
<script src="https://cdn.plot.ly/plotly-2.35.2.min.js"></script>
</head>
<body style="font-family: Arial, sans-serif; margin: 0; background: #f8fafc;">
<div id="chart" style="width: 100%; max-width: 1080px; height: 640px; margin: 24px auto;"></div>
<script>
const payload = {"labels": ["Backprop", "Predictive", "Circadian"], "values": [17.338261666694166, 17.741378333375717, 18.710663333350414], "colors": ["#2e61ad", "#3d9d56", "#bd6624"], "title": "Inference Latency P95", "y_label": "Mean p95 inference latency (ms)", "objective_note": "Lower is better", "range": [17.173573466695416, 18.875351533349164]};
const trace = {
x: payload.labels,
y: payload.values,
type: "bar",
marker: { color: payload.colors },
text: payload.values.map(v => String(v)),
textposition: "outside",
cliponaxis: false
};
const layout = {
title: { text: payload.title + "<br><sup>" + payload.objective_note + "</sup>" },
yaxis: { title: payload.y_label, range: payload.range },
xaxis: { title: "Model" },
margin: { l: 80, r: 40, t: 100, b: 80 },
paper_bgcolor: "#f8fafc",
plot_bgcolor: "#ffffff"
};
Plotly.newPlot("chart", [trace], layout, {responsive: true});
</script>
</body>
</html>