Skip to content

Commit

Permalink
Add support for string defaults, fixes StoneCypher/fsl#769
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed May 22, 2022
1 parent 3a527ad commit d30bbdd
Show file tree
Hide file tree
Showing 14 changed files with 1,044 additions and 153 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="chart1653095047989" width="16" height="9"></canvas>
<canvas id="chart1653095377530" width="16" height="9"></canvas>
</div>
<script>
const format = (num) => {
Expand All @@ -51,18 +51,18 @@
chunked.map((chunk) => chunk.join('')).join(' ') + fractionStr
)
}
const ctx1653095047989 = document
.getElementById('chart1653095047989')
const ctx1653095377530 = document
.getElementById('chart1653095377530')
.getContext('2d')
const chart1653095047989 = new Chart(ctx1653095047989, {
const chart1653095377530 = new Chart(ctx1653095377530, {
type: 'bar',
data: {
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","Kitchen Sink 500 times"],
datasets: [
{
data: [5747,12160,1388,6723,6642,6140,5975,6524,6221,25926,12380,1435,1414,10523,10533,9239,9335,68685,69142,68990,9408],
backgroundColor: ["hsl(9.972000000000003, 85%, 55%)","hsl(21.108000000000004, 85%, 55%)","hsl(2.412000000000006, 85%, 55%)","hsl(11.664, 85%, 55%)","hsl(11.531999999999998, 85%, 55%)","hsl(10.655999999999993, 85%, 55%)","hsl(10.368, 85%, 55%)","hsl(11.327999999999998, 85%, 55%)","hsl(10.799999999999999, 85%, 55%)","hsl(45, 85%, 55%)","hsl(21.491999999999994, 85%, 55%)","hsl(2.4959999999999978, 85%, 55%)","hsl(2.459999999999997, 85%, 55%)","hsl(18.264, 85%, 55%)","hsl(18.276000000000007, 85%, 55%)","hsl(16.032, 85%, 55%)","hsl(16.200000000000003, 85%, 55%)","hsl(119.20800000000001, 85%, 55%)","hsl(120, 85%, 55%)","hsl(119.736, 85%, 55%)","hsl(16.332, 85%, 55%)"],
borderColor: ["hsl(9.972000000000003, 85%, 55%)","hsl(21.108000000000004, 85%, 55%)","hsl(2.412000000000006, 85%, 55%)","hsl(11.664, 85%, 55%)","hsl(11.531999999999998, 85%, 55%)","hsl(10.655999999999993, 85%, 55%)","hsl(10.368, 85%, 55%)","hsl(11.327999999999998, 85%, 55%)","hsl(10.799999999999999, 85%, 55%)","hsl(45, 85%, 55%)","hsl(21.491999999999994, 85%, 55%)","hsl(2.4959999999999978, 85%, 55%)","hsl(2.459999999999997, 85%, 55%)","hsl(18.264, 85%, 55%)","hsl(18.276000000000007, 85%, 55%)","hsl(16.032, 85%, 55%)","hsl(16.200000000000003, 85%, 55%)","hsl(119.20800000000001, 85%, 55%)","hsl(120, 85%, 55%)","hsl(119.736, 85%, 55%)","hsl(16.332, 85%, 55%)"],
data: [4764,11237,1323,5374,5372,5067,4481,4627,4723,24831,11868,1503,1293,10398,10799,8794,8891,51091,57521,58664,8354],
backgroundColor: ["hsl(9.744000000000007, 85%, 55%)","hsl(22.980000000000008, 85%, 55%)","hsl(2.712000000000006, 85%, 55%)","hsl(10.991999999999996, 85%, 55%)","hsl(10.991999999999996, 85%, 55%)","hsl(10.368, 85%, 55%)","hsl(9.168000000000001, 85%, 55%)","hsl(9.468000000000002, 85%, 55%)","hsl(9.659999999999997, 85%, 55%)","hsl(50.796, 85%, 55%)","hsl(24.276000000000003, 85%, 55%)","hsl(3.0720000000000027, 85%, 55%)","hsl(2.6400000000000037, 85%, 55%)","hsl(21.264, 85%, 55%)","hsl(22.091999999999995, 85%, 55%)","hsl(17.987999999999992, 85%, 55%)","hsl(18.191999999999993, 85%, 55%)","hsl(104.508, 85%, 55%)","hsl(117.66, 85%, 55%)","hsl(120, 85%, 55%)","hsl(17.087999999999994, 85%, 55%)"],
borderColor: ["hsl(9.744000000000007, 85%, 55%)","hsl(22.980000000000008, 85%, 55%)","hsl(2.712000000000006, 85%, 55%)","hsl(10.991999999999996, 85%, 55%)","hsl(10.991999999999996, 85%, 55%)","hsl(10.368, 85%, 55%)","hsl(9.168000000000001, 85%, 55%)","hsl(9.468000000000002, 85%, 55%)","hsl(9.659999999999997, 85%, 55%)","hsl(50.796, 85%, 55%)","hsl(24.276000000000003, 85%, 55%)","hsl(3.0720000000000027, 85%, 55%)","hsl(2.6400000000000037, 85%, 55%)","hsl(21.264, 85%, 55%)","hsl(22.091999999999995, 85%, 55%)","hsl(17.987999999999992, 85%, 55%)","hsl(18.191999999999993, 85%, 55%)","hsl(104.508, 85%, 55%)","hsl(117.66, 85%, 55%)","hsl(120, 85%, 55%)","hsl(17.087999999999994, 85%, 55%)"],
borderWidth: 2,
},
],
Expand Down
134 changes: 67 additions & 67 deletions benchmark/results/general.json
@@ -1,141 +1,141 @@
{
"name": "General performance suite",
"date": "2022-05-21T01:04:07.989Z",
"date": "2022-05-21T01:09:37.530Z",
"version": "1.2.0",
"results": [
{
"name": "Blind cycle a traffic light 500 times by transition",
"ops": 5747,
"ops": 4764,
"margin": 2.12,
"percentSlower": 91.69
"percentSlower": 91.88
},
{
"name": "Blind cycle a traffic light 500 times by action",
"ops": 12160,
"margin": 3.22,
"percentSlower": 82.41
"ops": 11237,
"margin": 2.24,
"percentSlower": 80.85
},
{
"name": "Blind cycle a basic-hooked traffic light 500 times by transition",
"ops": 1388,
"margin": 1.08,
"percentSlower": 97.99
"ops": 1323,
"margin": 1.89,
"percentSlower": 97.74
},
{
"name": "Blind cycle a named-hooked traffic light 500 times by transition",
"ops": 6723,
"margin": 1.25,
"percentSlower": 90.28
"ops": 5374,
"margin": 2.01,
"percentSlower": 90.84
},
{
"name": "Blind cycle an any-transition traffic light 500 times by transition",
"ops": 6642,
"margin": 1.01,
"percentSlower": 90.39
"ops": 5372,
"margin": 1.94,
"percentSlower": 90.84
},
{
"name": "Blind cycle an exit hooked traffic light 500 times by transition",
"ops": 6140,
"margin": 1.55,
"percentSlower": 91.12
"ops": 5067,
"margin": 2.54,
"percentSlower": 91.36
},
{
"name": "Blind cycle an enter hooked traffic light 500 times by transition",
"ops": 5975,
"margin": 1.05,
"percentSlower": 91.36
"ops": 4481,
"margin": 6.38,
"percentSlower": 92.36
},
{
"name": "Blind cycle a standard-transition hooked light by transition",
"ops": 6524,
"margin": 1.4,
"percentSlower": 90.56
"ops": 4627,
"margin": 7.61,
"percentSlower": 92.11
},
{
"name": "Blind cycle a main-transition hooked light by transition",
"ops": 6221,
"margin": 2.94,
"percentSlower": 91
"ops": 4723,
"margin": 6.28,
"percentSlower": 91.95
},
{
"name": "Blind cycle a force-transition hooked light by transition",
"ops": 25926,
"margin": 0.62,
"percentSlower": 62.5
"ops": 24831,
"margin": 1.03,
"percentSlower": 57.67
},
{
"name": "Blind cycle a traffic light 500 times by action",
"ops": 12380,
"margin": 6.53,
"percentSlower": 82.09
"ops": 11868,
"margin": 0.83,
"percentSlower": 79.77
},
{
"name": "Blind cycle a basic-hooked traffic light 500 times by action",
"ops": 1435,
"margin": 6,
"percentSlower": 97.92
"ops": 1503,
"margin": 3.54,
"percentSlower": 97.44
},
{
"name": "Blind cycle a named-hooked traffic light 500 times by action",
"ops": 1414,
"margin": 1.48,
"percentSlower": 97.95
"ops": 1293,
"margin": 5.34,
"percentSlower": 97.8
},
{
"name": "Blind cycle an any-action traffic light 500 times by action",
"ops": 10523,
"margin": 0.96,
"percentSlower": 84.78
"ops": 10398,
"margin": 0.91,
"percentSlower": 82.28
},
{
"name": "Blind cycle a global-action traffic light 500 times by action",
"ops": 10533,
"margin": 2.61,
"percentSlower": 84.77
"ops": 10799,
"margin": 0.9,
"percentSlower": 81.59
},
{
"name": "Blind cycle an exit hooked traffic light 500 times by action",
"ops": 9239,
"margin": 1.26,
"percentSlower": 86.64
"ops": 8794,
"margin": 4.32,
"percentSlower": 85.01
},
{
"name": "Blind cycle an enter hooked traffic light 500 times by action",
"ops": 9335,
"margin": 0.87,
"percentSlower": 86.5
"ops": 8891,
"margin": 4.05,
"percentSlower": 84.84
},
{
"name": "Blind cycle a standard transition tl 500 times by action",
"ops": 68685,
"margin": 1.52,
"percentSlower": 0.66
"ops": 51091,
"margin": 6.76,
"percentSlower": 12.91
},
{
"name": "Blind cycle a main transition tl 500 times by action",
"ops": 69142,
"margin": 0.62,
"percentSlower": 0
"ops": 57521,
"margin": 3.61,
"percentSlower": 1.95
},
{
"name": "Blind cycle a forced transition tl 500 times by action",
"ops": 68990,
"margin": 0.97,
"percentSlower": 0.22
"ops": 58664,
"margin": 3.19,
"percentSlower": 0
},
{
"name": "Kitchen Sink 500 times",
"ops": 9408,
"margin": 1.24,
"percentSlower": 86.39
"ops": 8354,
"margin": 3.15,
"percentSlower": 85.76
}
],
"fastest": {
"name": "Blind cycle a main transition tl 500 times by action",
"index": 18
"name": "Blind cycle a forced transition tl 500 times by action",
"index": 19
},
"slowest": {
"name": "Blind cycle a basic-hooked traffic light 500 times by transition",
"index": 2
"name": "Blind cycle a named-hooked traffic light 500 times by action",
"index": 12
}
}
2 changes: 1 addition & 1 deletion dist/es6/jssm-dot.js

Large diffs are not rendered by default.

336 changes: 314 additions & 22 deletions dist/es6/jssm-dot.nonmin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/es6/version.js
@@ -1,2 +1,2 @@
const version = "5.65.0";
const version = "5.65.1";
export { version };
2 changes: 1 addition & 1 deletion dist/jssm.es5.cjs.js

Large diffs are not rendered by default.

0 comments on commit d30bbdd

Please sign in to comment.