Skip to content

Commit

Permalink
needed a build
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed May 9, 2022
1 parent d965a37 commit 8e20d05
Show file tree
Hide file tree
Showing 12 changed files with 38 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="chart1652111863379" width="16" height="9"></canvas>
<canvas id="chart1652112065483" width="16" height="9"></canvas>
</div>
<script>
const format = (num) => {
Expand All @@ -51,18 +51,18 @@
chunked.map((chunk) => chunk.join('')).join(' ') + fractionStr
)
}
const ctx1652111863379 = document
.getElementById('chart1652111863379')
const ctx1652112065483 = document
.getElementById('chart1652112065483')
.getContext('2d')
const chart1652111863379 = new Chart(ctx1652111863379, {
const chart1652112065483 = new Chart(ctx1652112065483, {
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: [20412,1724,14710,855],
backgroundColor: ["hsl(120, 85%, 55%)","hsl(10.140000000000004, 85%, 55%)","hsl(86.48399999999998, 85%, 55%)","hsl(5.027999999999998, 85%, 55%)"],
borderColor: ["hsl(120, 85%, 55%)","hsl(10.140000000000004, 85%, 55%)","hsl(86.48399999999998, 85%, 55%)","hsl(5.027999999999998, 85%, 55%)"],
data: [18713,1726,14874,819],
backgroundColor: ["hsl(120, 85%, 55%)","hsl(11.063999999999998, 85%, 55%)","hsl(95.376, 85%, 55%)","hsl(5.255999999999995, 85%, 55%)"],
borderColor: ["hsl(120, 85%, 55%)","hsl(11.063999999999998, 85%, 55%)","hsl(95.376, 85%, 55%)","hsl(5.255999999999995, 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-09T15:57:43.379Z",
"date": "2022-05-09T16:01:05.483Z",
"version": "1.1.0",
"results": [
{
"name": "Blind cycle a traffic light 500 times by transition",
"ops": 20412,
"margin": 0.95,
"ops": 18713,
"margin": 1.21,
"percentSlower": 0
},
{
"name": "Blind cycle a hooked traffic light 500 times by transition",
"ops": 1724,
"margin": 0.89,
"percentSlower": 91.55
"ops": 1726,
"margin": 0.59,
"percentSlower": 90.78
},
{
"name": "Blind cycle a traffic light 500 times by action",
"ops": 14710,
"margin": 1.38,
"percentSlower": 27.93
"ops": 14874,
"margin": 0.46,
"percentSlower": 20.52
},
{
"name": "Blind cycle a hooked traffic light 500 times by action",
"ops": 855,
"margin": 0.79,
"percentSlower": 95.81
"ops": 819,
"margin": 3.29,
"percentSlower": 95.62
}
],
"fastest": {
Expand Down
2 changes: 1 addition & 1 deletion dist/es6/version.js
@@ -1,2 +1,2 @@
const version = "5.55.0";
const version = "5.56.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 @@ -15886,7 +15886,7 @@ function peg$parse(input, options) {
}
}

const version = "5.55.0";
const version = "5.56.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 @@ -15885,7 +15885,7 @@ var jssm = (function (exports) {
}
}

const version = "5.55.0";
const version = "5.56.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.55.0",
"version": "5.56.1",
"engines": {
"node": ">=10.0.0"
},
Expand Down
10 changes: 10 additions & 0 deletions src/ts/jssm.ts
Expand Up @@ -1070,6 +1070,16 @@ class Machine<mDT> {



hook_entry(to: string, handler: HookHandler): Machine<mDT> {

// TODO: should this throw if setting the hook fails, or ignore it and continue?
this.set_hook({ kind: 'entry', to, handler });
return this;

}



// remove_hook(HookDesc: HookDescription) {
// throw 'TODO: Should remove hook here';
// }
Expand Down
2 changes: 1 addition & 1 deletion src/ts/version.ts
@@ -1,3 +1,3 @@

const version: string = "5.55.0";
const version: string = "5.56.0";
export { version };

0 comments on commit 8e20d05

Please sign in to comment.