Skip to content

Commit deb4653

Browse files
committed
add performance tests first try outs
1 parent 14d66b7 commit deb4653

18 files changed

Lines changed: 2803 additions & 22 deletions

File tree

package-lock.json

Lines changed: 559 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
88
"build": "npx tsc",
99
"start": "node dist/app.js",
10-
"dev": "nodemon src/app.ts"
10+
"dev": "nodemon src/app.ts",
11+
"performance": "tsx performance/src/performanceTesting.ts"
1112
},
1213
"author": "",
1314
"license": "ISC",
@@ -21,6 +22,7 @@
2122
"json-refs": "3.0.15",
2223
"jsondiffpatch": "^0.7.3",
2324
"lodash.isequal": "4.5.0",
25+
"simple-xml-to-json": "^1.2.4",
2426
"ts-node": "10.9.2"
2527
},
2628
"devDependencies": {
@@ -34,6 +36,7 @@
3436
"jest": "29.7.0",
3537
"nodemon": "3.1.7",
3638
"ts-jest": "29.2.5",
39+
"tsx": "^4.21.0",
3740
"typescript": "5.5.4",
3841
"typescript-eslint": "8.2.0"
3942
}
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
{
2+
"package": {
3+
"id": "pkg",
4+
"classes": [
5+
{
6+
"id": "A",
7+
"references": [
8+
{
9+
"id": "r1",
10+
"containment": true,
11+
"upperBound": -1,
12+
"lowerBound": 1,
13+
"type": {
14+
"$ref": "#/package/classes/1"
15+
}
16+
},
17+
{
18+
"id": "r2",
19+
"containment": false,
20+
"upperBound": 1,
21+
"lowerBound": 1,
22+
"type": {
23+
"$ref": "#/package/classes/2"
24+
}
25+
}
26+
]
27+
},
28+
{
29+
"id": "B",
30+
"attributes": [
31+
{
32+
"id": "b1",
33+
"upperBound": 1,
34+
"lowerBound": 1,
35+
"type": "String"
36+
},
37+
{
38+
"id": "b2",
39+
"upperBound": 1,
40+
"lowerBound": 1,
41+
"type": "float"
42+
}
43+
],
44+
"references": [
45+
{
46+
"id": "r3",
47+
"containment": true,
48+
"upperBound": -1,
49+
"lowerBound": 0,
50+
"type": {
51+
"$ref": "#/package/classes/3"
52+
}
53+
}
54+
]
55+
},
56+
{
57+
"id": "C",
58+
"attributes": [
59+
{
60+
"id": "c1",
61+
"upperBound": 1,
62+
"lowerBound": 1,
63+
"type": "String"
64+
},
65+
{
66+
"id": "c2",
67+
"upperBound": 1,
68+
"lowerBound": 0,
69+
"type": "String"
70+
}
71+
],
72+
"references": []
73+
},
74+
{
75+
"id": "D",
76+
"attributes": [
77+
{
78+
"id": "d1",
79+
"upperBound": 1,
80+
"lowerBound": 1,
81+
"type": "int"
82+
}
83+
],
84+
"references": []
85+
}
86+
]
87+
}
88+
}
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"package": {
3+
"id": "pkg",
4+
"classes": [
5+
{
6+
"id": "A",
7+
"references": [
8+
{
9+
"id": "r1",
10+
"containment": true,
11+
"upperBound": -1,
12+
"lowerBound": 0,
13+
"type": { "$ref": "#/package/classes/1" }
14+
},
15+
{
16+
"id": "r2",
17+
"containment": false,
18+
"upperBound": 1,
19+
"lowerBound": 1,
20+
"type": { "$ref": "#/package/classes/2" }
21+
}
22+
]
23+
},
24+
{
25+
"id": "B",
26+
"attributes": [
27+
{
28+
"id": "b2",
29+
"upperBound": 1,
30+
"lowerBound": 1,
31+
"type": "float"
32+
}
33+
],
34+
"references": [
35+
{
36+
"id": "r3",
37+
"containment": true,
38+
"upperBound": -1,
39+
"lowerBound": 0,
40+
"type": { "$ref": "#/package/classes/3" }
41+
}
42+
]
43+
},
44+
{
45+
"id": "C",
46+
"attributes": [
47+
{
48+
"id": "c1",
49+
"upperBound": 1,
50+
"lowerBound": 1,
51+
"type": "String"
52+
},
53+
{
54+
"id": "c2",
55+
"upperBound": 1,
56+
"lowerBound": 0,
57+
"type": "String"
58+
},
59+
{
60+
"id": "c3",
61+
"upperBound": 1,
62+
"lowerBound": 0,
63+
"type": "float"
64+
}
65+
],
66+
"references": []
67+
},
68+
{
69+
"id": "D",
70+
"attributes": [
71+
{
72+
"id": "d1",
73+
"upperBound": 1,
74+
"lowerBound": 1,
75+
"type": "int"
76+
}
77+
],
78+
"references": [
79+
{
80+
"id": "r4",
81+
"containment": true,
82+
"upperBound": -1,
83+
"lowerBound": 0,
84+
"type": { "$ref": "#/package/classes/4" }
85+
}
86+
]
87+
},
88+
{
89+
"id": "E",
90+
"attributes": [
91+
{
92+
"id": "e1",
93+
"upperBound": 1,
94+
"lowerBound": 1,
95+
"type": "int"
96+
},
97+
{
98+
"id": "e2",
99+
"upperBound": 1,
100+
"lowerBound": 0,
101+
"type": "String"
102+
}
103+
],
104+
"references": []
105+
}
106+
]
107+
}
108+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"package": {
3+
"id": "pkg",
4+
"classes": [
5+
{
6+
"id": "A",
7+
"slots": [
8+
{
9+
"id": "s1",
10+
"kind": "single",
11+
"target": { "$ref": "#/package/classes/1" }
12+
},
13+
{
14+
"id": "s2",
15+
"kind": "many",
16+
"target": { "$ref": "#/package/classes/2" }
17+
},
18+
{
19+
"id": "s3",
20+
"kind": "many",
21+
"target": { "$ref": "#/package/classes/3" }
22+
}
23+
],
24+
"fields": [
25+
{ "id": "f1", "type": "String" },
26+
{ "id": "f2", "type": "bool" }
27+
]
28+
},
29+
{
30+
"id": "B",
31+
"slots": [
32+
{
33+
"id": "s4",
34+
"kind": "single",
35+
"target": { "$ref": "#/package/classes/3" }
36+
}
37+
],
38+
"fields": [
39+
{ "id": "f3", "type": "int" },
40+
{ "id": "f4", "type": "float" },
41+
{ "id": "f5", "type": "String" }
42+
]
43+
},
44+
{
45+
"id": "C",
46+
"slots": [
47+
{
48+
"id": "s5",
49+
"kind": "many",
50+
"target": { "$ref": "#/package/classes/4" }
51+
},
52+
{
53+
"id": "s6",
54+
"kind": "single",
55+
"target": { "$ref": "#/package/classes/1" }
56+
}
57+
],
58+
"fields": [
59+
{ "id": "f6", "type": "bool" }
60+
]
61+
},
62+
{
63+
"id": "D",
64+
"slots": [],
65+
"fields": [
66+
{ "id": "f7", "type": "String" },
67+
{ "id": "f8", "type": "int" },
68+
{ "id": "f9", "type": "float" }
69+
]
70+
},
71+
{
72+
"id": "E",
73+
"slots": [
74+
{
75+
"id": "s7",
76+
"kind": "single",
77+
"target": { "$ref": "#/package/classes/3" }
78+
}
79+
],
80+
"fields": [
81+
{ "id": "f10", "type": "int" },
82+
{ "id": "f11", "type": "bool" }
83+
]
84+
}
85+
]
86+
}
87+
}

0 commit comments

Comments
 (0)