-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbenchmark.html
More file actions
14 lines (13 loc) · 1.31 KB
/
benchmark.html
File metadata and controls
14 lines (13 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<html>
<head>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
<div id="plot" style="width:100%;height:600px;"></div>
<script>
const data = [{"x":[400,40000,250000,1000000],"y":[0.34004000000001045,34.14455999999998,524.5367400000001,6601.693339999998],"type":"scatter","mode":"lines+markers","name":"Nested Loops","line":{"color":"#f1634c","width":4},"marker":{"color":"#f1634c","size":8,"symbol":"circle"}},{"x":[400,40000,250000,1000000],"y":[0.10092999999999393,3.0155700000000136,15.585880000000088,86.03337000000029],"type":"scatter","mode":"lines+markers","name":"Entity Graph","line":{"color":"#37b98b","width":4},"marker":{"color":"#37b98b","size":8,"symbol":"circle"}},{"x":[400,40000,250000,1000000],"y":[0.4525199999999927,8.46534999999999,77.04193999999988,365.7445599999992],"type":"scatter","mode":"lines+markers","name":"Entity Graph with Build","line":{"color":"#faa318","width":4},"marker":{"color":"#faa318","size":8,"symbol":"circle"}}];
const layout = {"xaxis":{"title":"Number of Transactions"},"yaxis":{"title":"Average runtime (ms)","tickformat":".0s"},"font":{"size":18},"legend":{"orientation":"h","x":0.5,"xanchor":"center","y":1.1},"margin":{"l":80,"r":40,"t":70,"b":80}};
Plotly.newPlot('plot', data, layout);
</script>
</body>
</html>