Skip to content

Commit

Permalink
Merge pull request #467 from StoneCypher/ImproveBenchmark
Browse files Browse the repository at this point in the history
Improve benchmark, fixes StoneCypher/fsl#737
  • Loading branch information
StoneCypher committed May 13, 2022
2 parents c61e59e + bca3384 commit 0f1535b
Show file tree
Hide file tree
Showing 12 changed files with 451 additions and 45 deletions.
16 changes: 8 additions & 8 deletions benchmark/results/general.chart.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</head>
<body>
<div class="container">
<canvas id="chart1652390472468" width="16" height="9"></canvas>
<canvas id="chart1652399505339" width="16" height="9"></canvas>
</div>
<script>
const format = (num) => {
Expand All @@ -51,18 +51,18 @@
chunked.map((chunk) => chunk.join('')).join(' ') + fractionStr
)
}
const ctx1652390472468 = document
.getElementById('chart1652390472468')
const ctx1652399505339 = document
.getElementById('chart1652399505339')
.getContext('2d')
const chart1652390472468 = new Chart(ctx1652390472468, {
const chart1652399505339 = new Chart(ctx1652399505339, {
type: 'bar',
data: {
labels: ["Blind cycle a traffic light 500 times by transition","Blind cycle a hooked traffic light 500 times by transition","Blind cycle a traffic light 500 times by action","Blind cycle a hooked traffic light 500 times by action"],
labels: ["Blind cycle a traffic light 500 times by transition","Blind cycle a traffic light 500 times by action","Blind cycle a basic-hooked traffic light 500 times by transition","Blind cycle a named-hooked traffic light 500 times by transition","Blind cycle an any-transition traffic light 500 times by transition","Blind cycle an exit hooked traffic light 500 times by transition","Blind cycle an enter hooked traffic light 500 times by transition","Blind cycle a standard-transition hooked light by transition","Blind cycle a main-transition hooked light by transition","Blind cycle a force-transition hooked light by transition","Blind cycle a traffic light 500 times by action","Blind cycle a basic-hooked traffic light 500 times by action","Blind cycle a named-hooked traffic light 500 times by action","Blind cycle an any-action traffic light 500 times by action","Blind cycle a global-action traffic light 500 times by action","Blind cycle an exit hooked traffic light 500 times by action","Blind cycle an enter hooked traffic light 500 times by action","Blind cycle a standard transition tl 500 times by action","Blind cycle a main transition tl 500 times by action","Blind cycle a forced transition tl 500 times by action"],
datasets: [
{
data: [6804,1366,14372,792],
backgroundColor: ["hsl(56.80800000000001, 85%, 55%)","hsl(11.4, 85%, 55%)","hsl(120, 85%, 55%)","hsl(6.612000000000006, 85%, 55%)"],
borderColor: ["hsl(56.80800000000001, 85%, 55%)","hsl(11.4, 85%, 55%)","hsl(120, 85%, 55%)","hsl(6.612000000000006, 85%, 55%)"],
data: [6018,12290,1207,1173,1267,1243,1246,1256,1259,24351,12645,796,750,819,815,822,824,60076,52154,57609],
backgroundColor: ["hsl(12.023999999999994, 85%, 55%)","hsl(24.551999999999992, 85%, 55%)","hsl(2.412000000000006, 85%, 55%)","hsl(2.3400000000000034, 85%, 55%)","hsl(2.531999999999999, 85%, 55%)","hsl(2.4839999999999915, 85%, 55%)","hsl(2.4839999999999915, 85%, 55%)","hsl(2.508000000000004, 85%, 55%)","hsl(2.519999999999993, 85%, 55%)","hsl(48.635999999999996, 85%, 55%)","hsl(25.259999999999994, 85%, 55%)","hsl(1.5839999999999919, 85%, 55%)","hsl(1.5, 85%, 55%)","hsl(1.6319999999999992, 85%, 55%)","hsl(1.6319999999999992, 85%, 55%)","hsl(1.6440000000000055, 85%, 55%)","hsl(1.6440000000000055, 85%, 55%)","hsl(120, 85%, 55%)","hsl(104.172, 85%, 55%)","hsl(115.068, 85%, 55%)"],
borderColor: ["hsl(12.023999999999994, 85%, 55%)","hsl(24.551999999999992, 85%, 55%)","hsl(2.412000000000006, 85%, 55%)","hsl(2.3400000000000034, 85%, 55%)","hsl(2.531999999999999, 85%, 55%)","hsl(2.4839999999999915, 85%, 55%)","hsl(2.4839999999999915, 85%, 55%)","hsl(2.508000000000004, 85%, 55%)","hsl(2.519999999999993, 85%, 55%)","hsl(48.635999999999996, 85%, 55%)","hsl(25.259999999999994, 85%, 55%)","hsl(1.5839999999999919, 85%, 55%)","hsl(1.5, 85%, 55%)","hsl(1.6319999999999992, 85%, 55%)","hsl(1.6319999999999992, 85%, 55%)","hsl(1.6440000000000055, 85%, 55%)","hsl(1.6440000000000055, 85%, 55%)","hsl(120, 85%, 55%)","hsl(104.172, 85%, 55%)","hsl(115.068, 85%, 55%)"],
borderWidth: 2,
},
],
Expand Down
134 changes: 115 additions & 19 deletions benchmark/results/general.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,135 @@
{
"name": "General performance suite",
"date": "2022-05-12T21:21:12.468Z",
"version": "1.1.0",
"date": "2022-05-12T23:51:45.339Z",
"version": "1.2.0",
"results": [
{
"name": "Blind cycle a traffic light 500 times by transition",
"ops": 6804,
"margin": 1.94,
"percentSlower": 52.66
"ops": 6018,
"margin": 1.96,
"percentSlower": 89.98
},
{
"name": "Blind cycle a hooked traffic light 500 times by transition",
"ops": 1366,
"margin": 0.99,
"percentSlower": 90.5
"name": "Blind cycle a traffic light 500 times by action",
"ops": 12290,
"margin": 2.53,
"percentSlower": 79.54
},
{
"name": "Blind cycle a basic-hooked traffic light 500 times by transition",
"ops": 1207,
"margin": 4.7,
"percentSlower": 97.99
},
{
"name": "Blind cycle a named-hooked traffic light 500 times by transition",
"ops": 1173,
"margin": 5.8,
"percentSlower": 98.05
},
{
"name": "Blind cycle an any-transition traffic light 500 times by transition",
"ops": 1267,
"margin": 1.77,
"percentSlower": 97.89
},
{
"name": "Blind cycle an exit hooked traffic light 500 times by transition",
"ops": 1243,
"margin": 2.17,
"percentSlower": 97.93
},
{
"name": "Blind cycle an enter hooked traffic light 500 times by transition",
"ops": 1246,
"margin": 1.63,
"percentSlower": 97.93
},
{
"name": "Blind cycle a standard-transition hooked light by transition",
"ops": 1256,
"margin": 1.56,
"percentSlower": 97.91
},
{
"name": "Blind cycle a main-transition hooked light by transition",
"ops": 1259,
"margin": 1.59,
"percentSlower": 97.9
},
{
"name": "Blind cycle a force-transition hooked light by transition",
"ops": 24351,
"margin": 1.65,
"percentSlower": 59.47
},
{
"name": "Blind cycle a traffic light 500 times by action",
"ops": 14372,
"margin": 2.3,
"ops": 12645,
"margin": 1.85,
"percentSlower": 78.95
},
{
"name": "Blind cycle a basic-hooked traffic light 500 times by action",
"ops": 796,
"margin": 1.36,
"percentSlower": 98.68
},
{
"name": "Blind cycle a named-hooked traffic light 500 times by action",
"ops": 750,
"margin": 6.79,
"percentSlower": 98.75
},
{
"name": "Blind cycle an any-action traffic light 500 times by action",
"ops": 819,
"margin": 1.27,
"percentSlower": 98.64
},
{
"name": "Blind cycle a global-action traffic light 500 times by action",
"ops": 815,
"margin": 1.92,
"percentSlower": 98.64
},
{
"name": "Blind cycle an exit hooked traffic light 500 times by action",
"ops": 822,
"margin": 1,
"percentSlower": 98.63
},
{
"name": "Blind cycle an enter hooked traffic light 500 times by action",
"ops": 824,
"margin": 0.68,
"percentSlower": 98.63
},
{
"name": "Blind cycle a standard transition tl 500 times by action",
"ops": 60076,
"margin": 3.91,
"percentSlower": 0
},
{
"name": "Blind cycle a hooked traffic light 500 times by action",
"ops": 792,
"margin": 1.98,
"percentSlower": 94.49
"name": "Blind cycle a main transition tl 500 times by action",
"ops": 52154,
"margin": 7.86,
"percentSlower": 13.19
},
{
"name": "Blind cycle a forced transition tl 500 times by action",
"ops": 57609,
"margin": 2.65,
"percentSlower": 4.11
}
],
"fastest": {
"name": "Blind cycle a traffic light 500 times by action",
"index": 2
"name": "Blind cycle a standard transition tl 500 times by action",
"index": 17
},
"slowest": {
"name": "Blind cycle a hooked traffic light 500 times by action",
"index": 3
"name": "Blind cycle a named-hooked traffic light 500 times by action",
"index": 12
}
}
2 changes: 1 addition & 1 deletion dist/es6/version.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
const version = "5.60.4";
const version = "5.61.1";
export { version };
2 changes: 1 addition & 1 deletion dist/jssm.es5.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jssm.es5.cjs.nonmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -15886,7 +15886,7 @@ function peg$parse(input, options) {
}
}

const version = "5.60.4";
const version = "5.61.1";

// whargarbl lots of these return arrays could/should be sets
/* eslint-disable complexity */
Expand Down
2 changes: 1 addition & 1 deletion dist/jssm.es5.iife.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jssm.es5.iife.nonmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -15885,7 +15885,7 @@ var jssm = (function (exports) {
}
}

const version = "5.60.4";
const version = "5.61.1";

// whargarbl lots of these return arrays could/should be sets
/* eslint-disable complexity */
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/classes/Machine.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/docs/modules.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jssm",
"version": "5.60.4",
"version": "5.61.1",
"engines": {
"node": ">=10.0.0"
},
Expand Down

0 comments on commit 0f1535b

Please sign in to comment.