Skip to content

Commit

Permalink
Properties are in the grammar; with and without default; numbers, boo…
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed May 21, 2022
1 parent 9480ef7 commit 2f9c60b
Show file tree
Hide file tree
Showing 11 changed files with 1,562 additions and 126 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="chart1653015926984" width="16" height="9"></canvas>
<canvas id="chart1653093021141" width="16" height="9"></canvas>
</div>
<script>
const format = (num) => {
Expand All @@ -51,18 +51,18 @@
chunked.map((chunk) => chunk.join('')).join(' ') + fractionStr
)
}
const ctx1653015926984 = document
.getElementById('chart1653015926984')
const ctx1653093021141 = document
.getElementById('chart1653093021141')
.getContext('2d')
const chart1653015926984 = new Chart(ctx1653015926984, {
const chart1653093021141 = new Chart(ctx1653093021141, {
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: [5673,12912,1397,6619,6368,6142,5478,6268,6345,28750,14102,1607,1440,10906,11420,9502,9557,61526,63865,61211,9355],
backgroundColor: ["hsl(10.655999999999993, 85%, 55%)","hsl(24.264, 85%, 55%)","hsl(2.6279999999999974, 85%, 55%)","hsl(12.432, 85%, 55%)","hsl(11.963999999999999, 85%, 55%)","hsl(11.544000000000006, 85%, 55%)","hsl(10.296, 85%, 55%)","hsl(11.772000000000002, 85%, 55%)","hsl(11.927999999999997, 85%, 55%)","hsl(54.02400000000001, 85%, 55%)","hsl(26.496, 85%, 55%)","hsl(3.023999999999995, 85%, 55%)","hsl(2.6999999999999997, 85%, 55%)","hsl(20.496, 85%, 55%)","hsl(21.455999999999996, 85%, 55%)","hsl(17.855999999999995, 85%, 55%)","hsl(17.95199999999999, 85%, 55%)","hsl(115.608, 85%, 55%)","hsl(120, 85%, 55%)","hsl(115.00800000000001, 85%, 55%)","hsl(17.580000000000005, 85%, 55%)"],
borderColor: ["hsl(10.655999999999993, 85%, 55%)","hsl(24.264, 85%, 55%)","hsl(2.6279999999999974, 85%, 55%)","hsl(12.432, 85%, 55%)","hsl(11.963999999999999, 85%, 55%)","hsl(11.544000000000006, 85%, 55%)","hsl(10.296, 85%, 55%)","hsl(11.772000000000002, 85%, 55%)","hsl(11.927999999999997, 85%, 55%)","hsl(54.02400000000001, 85%, 55%)","hsl(26.496, 85%, 55%)","hsl(3.023999999999995, 85%, 55%)","hsl(2.6999999999999997, 85%, 55%)","hsl(20.496, 85%, 55%)","hsl(21.455999999999996, 85%, 55%)","hsl(17.855999999999995, 85%, 55%)","hsl(17.95199999999999, 85%, 55%)","hsl(115.608, 85%, 55%)","hsl(120, 85%, 55%)","hsl(115.00800000000001, 85%, 55%)","hsl(17.580000000000005, 85%, 55%)"],
data: [5195,13067,1357,6285,5948,5904,5784,6175,6026,22623,14196,1579,1430,11099,11702,9915,9735,69292,66185,68490,9305],
backgroundColor: ["hsl(9, 85%, 55%)","hsl(22.631999999999998, 85%, 55%)","hsl(2.3519999999999923, 85%, 55%)","hsl(10.883999999999991, 85%, 55%)","hsl(10.296, 85%, 55%)","hsl(10.223999999999995, 85%, 55%)","hsl(10.019999999999994, 85%, 55%)","hsl(10.691999999999997, 85%, 55%)","hsl(10.440000000000003, 85%, 55%)","hsl(39.18000000000001, 85%, 55%)","hsl(24.587999999999994, 85%, 55%)","hsl(2.7360000000000015, 85%, 55%)","hsl(2.4720000000000026, 85%, 55%)","hsl(19.223999999999993, 85%, 55%)","hsl(20.268, 85%, 55%)","hsl(17.172000000000004, 85%, 55%)","hsl(16.859999999999996, 85%, 55%)","hsl(120, 85%, 55%)","hsl(114.624, 85%, 55%)","hsl(118.608, 85%, 55%)","hsl(16.116000000000007, 85%, 55%)"],
borderColor: ["hsl(9, 85%, 55%)","hsl(22.631999999999998, 85%, 55%)","hsl(2.3519999999999923, 85%, 55%)","hsl(10.883999999999991, 85%, 55%)","hsl(10.296, 85%, 55%)","hsl(10.223999999999995, 85%, 55%)","hsl(10.019999999999994, 85%, 55%)","hsl(10.691999999999997, 85%, 55%)","hsl(10.440000000000003, 85%, 55%)","hsl(39.18000000000001, 85%, 55%)","hsl(24.587999999999994, 85%, 55%)","hsl(2.7360000000000015, 85%, 55%)","hsl(2.4720000000000026, 85%, 55%)","hsl(19.223999999999993, 85%, 55%)","hsl(20.268, 85%, 55%)","hsl(17.172000000000004, 85%, 55%)","hsl(16.859999999999996, 85%, 55%)","hsl(120, 85%, 55%)","hsl(114.624, 85%, 55%)","hsl(118.608, 85%, 55%)","hsl(16.116000000000007, 85%, 55%)"],
borderWidth: 2,
},
],
Expand Down
132 changes: 66 additions & 66 deletions benchmark/results/general.json
@@ -1,138 +1,138 @@
{
"name": "General performance suite",
"date": "2022-05-20T03:05:26.984Z",
"date": "2022-05-21T00:30:21.141Z",
"version": "1.2.0",
"results": [
{
"name": "Blind cycle a traffic light 500 times by transition",
"ops": 5673,
"margin": 1.85,
"percentSlower": 91.12
"ops": 5195,
"margin": 2.9,
"percentSlower": 92.5
},
{
"name": "Blind cycle a traffic light 500 times by action",
"ops": 12912,
"margin": 3.27,
"percentSlower": 79.78
"ops": 13067,
"margin": 2.78,
"percentSlower": 81.14
},
{
"name": "Blind cycle a basic-hooked traffic light 500 times by transition",
"ops": 1397,
"margin": 1.39,
"percentSlower": 97.81
"ops": 1357,
"margin": 1.27,
"percentSlower": 98.04
},
{
"name": "Blind cycle a named-hooked traffic light 500 times by transition",
"ops": 6619,
"margin": 1.43,
"percentSlower": 89.64
"ops": 6285,
"margin": 1.14,
"percentSlower": 90.93
},
{
"name": "Blind cycle an any-transition traffic light 500 times by transition",
"ops": 6368,
"margin": 1.21,
"percentSlower": 90.03
"ops": 5948,
"margin": 2.09,
"percentSlower": 91.42
},
{
"name": "Blind cycle an exit hooked traffic light 500 times by transition",
"ops": 6142,
"margin": 0.83,
"percentSlower": 90.38
"ops": 5904,
"margin": 1.03,
"percentSlower": 91.48
},
{
"name": "Blind cycle an enter hooked traffic light 500 times by transition",
"ops": 5478,
"margin": 3.23,
"percentSlower": 91.42
"ops": 5784,
"margin": 1.51,
"percentSlower": 91.65
},
{
"name": "Blind cycle a standard-transition hooked light by transition",
"ops": 6268,
"margin": 0.9,
"percentSlower": 90.19
"ops": 6175,
"margin": 0.8,
"percentSlower": 91.09
},
{
"name": "Blind cycle a main-transition hooked light by transition",
"ops": 6345,
"margin": 0.89,
"percentSlower": 90.06
"ops": 6026,
"margin": 1.49,
"percentSlower": 91.3
},
{
"name": "Blind cycle a force-transition hooked light by transition",
"ops": 28750,
"margin": 0.78,
"percentSlower": 54.98
"ops": 22623,
"margin": 2.37,
"percentSlower": 67.35
},
{
"name": "Blind cycle a traffic light 500 times by action",
"ops": 14102,
"margin": 0.84,
"percentSlower": 77.92
"ops": 14196,
"margin": 1.01,
"percentSlower": 79.51
},
{
"name": "Blind cycle a basic-hooked traffic light 500 times by action",
"ops": 1607,
"margin": 0.7,
"percentSlower": 97.48
"ops": 1579,
"margin": 1.78,
"percentSlower": 97.72
},
{
"name": "Blind cycle a named-hooked traffic light 500 times by action",
"ops": 1440,
"margin": 0.75,
"percentSlower": 97.75
"ops": 1430,
"margin": 1.73,
"percentSlower": 97.94
},
{
"name": "Blind cycle an any-action traffic light 500 times by action",
"ops": 10906,
"margin": 1.47,
"percentSlower": 82.92
"ops": 11099,
"margin": 1.39,
"percentSlower": 83.98
},
{
"name": "Blind cycle a global-action traffic light 500 times by action",
"ops": 11420,
"margin": 0.71,
"percentSlower": 82.12
"ops": 11702,
"margin": 1.1,
"percentSlower": 83.11
},
{
"name": "Blind cycle an exit hooked traffic light 500 times by action",
"ops": 9502,
"margin": 2.03,
"percentSlower": 85.12
"ops": 9915,
"margin": 0.89,
"percentSlower": 85.69
},
{
"name": "Blind cycle an enter hooked traffic light 500 times by action",
"ops": 9557,
"margin": 2.32,
"percentSlower": 85.04
"ops": 9735,
"margin": 0.88,
"percentSlower": 85.95
},
{
"name": "Blind cycle a standard transition tl 500 times by action",
"ops": 61526,
"margin": 1.75,
"percentSlower": 3.66
"ops": 69292,
"margin": 1.47,
"percentSlower": 0
},
{
"name": "Blind cycle a main transition tl 500 times by action",
"ops": 63865,
"margin": 1.78,
"percentSlower": 0
"ops": 66185,
"margin": 1.54,
"percentSlower": 4.48
},
{
"name": "Blind cycle a forced transition tl 500 times by action",
"ops": 61211,
"margin": 0.77,
"percentSlower": 4.16
"ops": 68490,
"margin": 1.82,
"percentSlower": 1.16
},
{
"name": "Kitchen Sink 500 times",
"ops": 9355,
"margin": 0.96,
"percentSlower": 85.35
"ops": 9305,
"margin": 1.36,
"percentSlower": 86.57
}
],
"fastest": {
"name": "Blind cycle a main transition tl 500 times by action",
"index": 18
"name": "Blind cycle a standard transition tl 500 times by action",
"index": 17
},
"slowest": {
"name": "Blind cycle a basic-hooked traffic light 500 times by transition",
Expand Down
2 changes: 1 addition & 1 deletion dist/es6/jssm-dot.js

Large diffs are not rendered by default.

0 comments on commit 2f9c60b

Please sign in to comment.