Skip to content

Commit

Permalink
Basic benchmarks now on disk
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed Apr 19, 2022
1 parent bcbc03e commit c0e5d9e
Show file tree
Hide file tree
Showing 6 changed files with 19,172 additions and 135 deletions.
116 changes: 116 additions & 0 deletions benchmark/results/general.chart.html
@@ -0,0 +1,116 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" />
<script src="https://cdn.jsdelivr.net/npm/chart.js@3.5.1/dist/chart.min.js"></script>
<title>General performance suite</title>
<style>
body {
margin: 0;
padding: 0;
background: #ddd;
}

.container {
box-sizing: border-box;
height: 96vh;
width: 96vw;
margin: 2vh 2vw;
resize: both;
overflow: hidden;
padding: 20px;
background: white;
box-shadow: 0 0 15px #aaa;
}
</style>
</head>
<body>
<div class="container">
<canvas id="chart1650385543249" width="16" height="9"></canvas>
</div>
<script>
const format = (num) => {
const [whole, fraction] = String(num).split('.')
const chunked = []
whole
.split('')
.reverse()
.forEach((char, index) => {
if (index % 3 === 0) {
chunked.unshift([char])
} else {
chunked[0].unshift(char)
}
})

const fractionStr = fraction !== undefined ? '.' + fraction : ''

return (
chunked.map((chunk) => chunk.join('')).join(' ') + fractionStr
)
}
const ctx1650385543249 = document
.getElementById('chart1650385543249')
.getContext('2d')
const chart1650385543249 = new Chart(ctx1650385543249, {
type: 'bar',
data: {
labels: ["Blind cycle a traffic light 500 times by transition","Blind cycle a traffic light 500 times by action"],
datasets: [
{
data: [11753,9261],
backgroundColor: ["hsl(120, 85%, 55%)","hsl(94.55999999999999, 85%, 55%)"],
borderColor: ["hsl(120, 85%, 55%)","hsl(94.55999999999999, 85%, 55%)"],
borderWidth: 2,
},
],
},
options: {
maintainAspectRatio: false,
plugins: {
title: {
display: true,
text: 'General performance suite',
font: { size: 20 },
padding: 20,
},
legend: {
display: false,
},
tooltip: {
callbacks: {
label: (context) => {
return format(context.parsed.y) + ' ops/s'
},
},
displayColors: false,
backgroundColor: '#222222',
padding: 10,
cornerRadius: 5,
intersect: false,
},
},
scales: {
x: {
grid: {
color: '#888888',
},
},
y: {
title: {
display: true,
text: 'Operations per second',
padding: 10,
},
grid: {
color: '#888888',
},
},
},
},
})
</script>
</body>
</html>
27 changes: 27 additions & 0 deletions benchmark/results/general.json
@@ -0,0 +1,27 @@
{
"name": "General performance suite",
"date": "2022-04-19T16:25:43.249Z",
"version": "1.0.0",
"results": [
{
"name": "Blind cycle a traffic light 500 times by transition",
"ops": 11753,
"margin": 3.14,
"percentSlower": 0
},
{
"name": "Blind cycle a traffic light 500 times by action",
"ops": 9261,
"margin": 1.53,
"percentSlower": 21.2
}
],
"fastest": {
"name": "Blind cycle a traffic light 500 times by transition",
"index": 0
},
"slowest": {
"name": "Blind cycle a traffic light 500 times by action",
"index": 1
}
}
102 changes: 0 additions & 102 deletions benchmark/results/reduce.chart.html

This file was deleted.

27 changes: 0 additions & 27 deletions benchmark/results/reduce.json

This file was deleted.

0 comments on commit c0e5d9e

Please sign in to comment.