Skip to content

Commit

Permalink
Fluent hooking API for actions, fixes StoneCypher/fsl#680
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed May 8, 2022
1 parent 29e6d6f commit bc63923
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 28 deletions.
14 changes: 7 additions & 7 deletions benchmark/results/general.chart.html
Expand Up @@ -28,7 +28,7 @@
</head>
<body>
<div class="container">
<canvas id="chart1651781613072" width="16" height="9"></canvas>
<canvas id="chart1651986178121" width="16" height="9"></canvas>
</div>
<script>
const format = (num) => {
Expand All @@ -51,18 +51,18 @@
chunked.map((chunk) => chunk.join('')).join(' ') + fractionStr
)
}
const ctx1651781613072 = document
.getElementById('chart1651781613072')
const ctx1651986178121 = document
.getElementById('chart1651986178121')
.getContext('2d')
const chart1651781613072 = new Chart(ctx1651781613072, {
const chart1651986178121 = new Chart(ctx1651986178121, {
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"],
datasets: [
{
data: [19593,1623,13488,1380],
backgroundColor: ["hsl(120, 85%, 55%)","hsl(9.936000000000002, 85%, 55%)","hsl(82.608, 85%, 55%)","hsl(8.448000000000008, 85%, 55%)"],
borderColor: ["hsl(120, 85%, 55%)","hsl(9.936000000000002, 85%, 55%)","hsl(82.608, 85%, 55%)","hsl(8.448000000000008, 85%, 55%)"],
data: [18328,1666,14304,1325],
backgroundColor: ["hsl(120, 85%, 55%)","hsl(10.908000000000005, 85%, 55%)","hsl(93.64799999999998, 85%, 55%)","hsl(8.676000000000005, 85%, 55%)"],
borderColor: ["hsl(120, 85%, 55%)","hsl(10.908000000000005, 85%, 55%)","hsl(93.64799999999998, 85%, 55%)","hsl(8.676000000000005, 85%, 55%)"],
borderWidth: 2,
},
],
Expand Down
24 changes: 12 additions & 12 deletions benchmark/results/general.json
@@ -1,31 +1,31 @@
{
"name": "General performance suite",
"date": "2022-05-05T20:13:33.072Z",
"date": "2022-05-08T05:02:58.121Z",
"version": "1.1.0",
"results": [
{
"name": "Blind cycle a traffic light 500 times by transition",
"ops": 19593,
"margin": 2.72,
"ops": 18328,
"margin": 6.88,
"percentSlower": 0
},
{
"name": "Blind cycle a hooked traffic light 500 times by transition",
"ops": 1623,
"margin": 1.62,
"percentSlower": 91.72
"ops": 1666,
"margin": 3.01,
"percentSlower": 90.91
},
{
"name": "Blind cycle a traffic light 500 times by action",
"ops": 13488,
"margin": 1.34,
"percentSlower": 31.16
"ops": 14304,
"margin": 1.01,
"percentSlower": 21.96
},
{
"name": "Blind cycle a hooked traffic light 500 times by action",
"ops": 1380,
"margin": 1.86,
"percentSlower": 92.96
"ops": 1325,
"margin": 5.16,
"percentSlower": 92.77
}
],
"fastest": {
Expand Down
2 changes: 1 addition & 1 deletion dist/es6/version.js
@@ -1,2 +1,2 @@
const version = "5.47.0";
const version = "5.48.0";
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
Expand Up @@ -15887,7 +15887,7 @@ function peg$parse(input, options) {
}
}

const version = "5.47.0";
const version = "5.48.0";

// 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
Expand Up @@ -15886,7 +15886,7 @@ var jssm = (function (exports) {
}
}

const version = "5.47.0";
const version = "5.48.0";

// 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
@@ -1,6 +1,6 @@
{
"name": "jssm",
"version": "5.47.0",
"version": "5.48.0",
"engines": {
"node": ">=10.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/ts/version.ts
@@ -1,3 +1,3 @@

const version: string = "5.47.0";
const version: string = "5.48.0";
export { version };

0 comments on commit bc63923

Please sign in to comment.