Skip to content

Commit

Permalink
Merge pull request #476 from StoneCypher/PropertiesInGrammar
Browse files Browse the repository at this point in the history
Properties in grammar
  • Loading branch information
StoneCypher authored May 21, 2022
2 parents 9480ef7 + 3a527ad commit e337e6a
Show file tree
Hide file tree
Showing 14 changed files with 1,564 additions and 128 deletions.
14 changes: 7 additions & 7 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="chart1653015926984" width="16" height="9"></canvas>
<canvas id="chart1653095047989" 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 ctx1653095047989 = document
.getElementById('chart1653095047989')
.getContext('2d')
const chart1653015926984 = new Chart(ctx1653015926984, {
const chart1653095047989 = new Chart(ctx1653095047989, {
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: [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%)"],
borderWidth: 2,
},
],
Expand Down
126 changes: 63 additions & 63 deletions benchmark/results/general.json
Original file line number Diff line number Diff line change
@@ -1,133 +1,133 @@
{
"name": "General performance suite",
"date": "2022-05-20T03:05:26.984Z",
"date": "2022-05-21T01:04:07.989Z",
"version": "1.2.0",
"results": [
{
"name": "Blind cycle a traffic light 500 times by transition",
"ops": 5673,
"margin": 1.85,
"percentSlower": 91.12
"ops": 5747,
"margin": 2.12,
"percentSlower": 91.69
},
{
"name": "Blind cycle a traffic light 500 times by action",
"ops": 12912,
"margin": 3.27,
"percentSlower": 79.78
"ops": 12160,
"margin": 3.22,
"percentSlower": 82.41
},
{
"name": "Blind cycle a basic-hooked traffic light 500 times by transition",
"ops": 1397,
"margin": 1.39,
"percentSlower": 97.81
"ops": 1388,
"margin": 1.08,
"percentSlower": 97.99
},
{
"name": "Blind cycle a named-hooked traffic light 500 times by transition",
"ops": 6619,
"margin": 1.43,
"percentSlower": 89.64
"ops": 6723,
"margin": 1.25,
"percentSlower": 90.28
},
{
"name": "Blind cycle an any-transition traffic light 500 times by transition",
"ops": 6368,
"margin": 1.21,
"percentSlower": 90.03
"ops": 6642,
"margin": 1.01,
"percentSlower": 90.39
},
{
"name": "Blind cycle an exit hooked traffic light 500 times by transition",
"ops": 6142,
"margin": 0.83,
"percentSlower": 90.38
"ops": 6140,
"margin": 1.55,
"percentSlower": 91.12
},
{
"name": "Blind cycle an enter hooked traffic light 500 times by transition",
"ops": 5478,
"margin": 3.23,
"percentSlower": 91.42
"ops": 5975,
"margin": 1.05,
"percentSlower": 91.36
},
{
"name": "Blind cycle a standard-transition hooked light by transition",
"ops": 6268,
"margin": 0.9,
"percentSlower": 90.19
"ops": 6524,
"margin": 1.4,
"percentSlower": 90.56
},
{
"name": "Blind cycle a main-transition hooked light by transition",
"ops": 6345,
"margin": 0.89,
"percentSlower": 90.06
"ops": 6221,
"margin": 2.94,
"percentSlower": 91
},
{
"name": "Blind cycle a force-transition hooked light by transition",
"ops": 28750,
"margin": 0.78,
"percentSlower": 54.98
"ops": 25926,
"margin": 0.62,
"percentSlower": 62.5
},
{
"name": "Blind cycle a traffic light 500 times by action",
"ops": 14102,
"margin": 0.84,
"percentSlower": 77.92
"ops": 12380,
"margin": 6.53,
"percentSlower": 82.09
},
{
"name": "Blind cycle a basic-hooked traffic light 500 times by action",
"ops": 1607,
"margin": 0.7,
"percentSlower": 97.48
"ops": 1435,
"margin": 6,
"percentSlower": 97.92
},
{
"name": "Blind cycle a named-hooked traffic light 500 times by action",
"ops": 1440,
"margin": 0.75,
"percentSlower": 97.75
"ops": 1414,
"margin": 1.48,
"percentSlower": 97.95
},
{
"name": "Blind cycle an any-action traffic light 500 times by action",
"ops": 10906,
"margin": 1.47,
"percentSlower": 82.92
"ops": 10523,
"margin": 0.96,
"percentSlower": 84.78
},
{
"name": "Blind cycle a global-action traffic light 500 times by action",
"ops": 11420,
"margin": 0.71,
"percentSlower": 82.12
"ops": 10533,
"margin": 2.61,
"percentSlower": 84.77
},
{
"name": "Blind cycle an exit hooked traffic light 500 times by action",
"ops": 9502,
"margin": 2.03,
"percentSlower": 85.12
"ops": 9239,
"margin": 1.26,
"percentSlower": 86.64
},
{
"name": "Blind cycle an enter hooked traffic light 500 times by action",
"ops": 9557,
"margin": 2.32,
"percentSlower": 85.04
"ops": 9335,
"margin": 0.87,
"percentSlower": 86.5
},
{
"name": "Blind cycle a standard transition tl 500 times by action",
"ops": 61526,
"margin": 1.75,
"percentSlower": 3.66
"ops": 68685,
"margin": 1.52,
"percentSlower": 0.66
},
{
"name": "Blind cycle a main transition tl 500 times by action",
"ops": 63865,
"margin": 1.78,
"ops": 69142,
"margin": 0.62,
"percentSlower": 0
},
{
"name": "Blind cycle a forced transition tl 500 times by action",
"ops": 61211,
"margin": 0.77,
"percentSlower": 4.16
"ops": 68990,
"margin": 0.97,
"percentSlower": 0.22
},
{
"name": "Kitchen Sink 500 times",
"ops": 9355,
"margin": 0.96,
"percentSlower": 85.35
"ops": 9408,
"margin": 1.24,
"percentSlower": 86.39
}
],
"fastest": {
Expand Down
2 changes: 1 addition & 1 deletion dist/es6/jssm-dot.js

Large diffs are not rendered by default.

Loading

0 comments on commit e337e6a

Please sign in to comment.