Skip to content

Commit 587b4d0

Browse files
committed
feat: update projects
1 parent c8bf44c commit 587b4d0

File tree

10 files changed

+286
-174
lines changed

10 files changed

+286
-174
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
[submodule "benchmark/numbers.js"]
88
path = benchmark/numbers.js
99
url = https://github.com/numbers/numbers.js.git
10+
[submodule "benchmark/decimal.js"]
11+
path = benchmark/decimal.js
12+
url = https://github.com/MikeMcl/decimal.js.git

.syntest-projects.json

+12
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@
2727
"./benchmark/commanderjs/node_modules/**/*.*"
2828
],
2929

30+
"target-root-directory": "./benchmark/numbers.js",
31+
"target-include": [
32+
"./benchmark/numbers.js/lib/numbers/basic.js"
33+
],
34+
"analysis-include": [
35+
"./benchmark/numbers.js/lib/**/*.js"
36+
],
37+
"analysis-exclude": [
38+
"./benchmark/numbers.js/**/*.test.js",
39+
"./benchmark/numbers.js/test/**/*.*",
40+
"./benchmark/numbers.js/node_modules/**/*.*"
41+
],
3042

3143
"target-root-directory": "./benchmark/express",
3244
"target-include": [

.syntest.json

+12-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
2-
3-
4-
"target-root-directory": "./benchmark/axios",
2+
"target-root-directory": "./benchmark/commanderjs",
53
"target-include": [
6-
"./benchmark/axios/lib/adapters/http.js"
4+
"./benchmark/commanderjs/lib/suggestSimilar.js"
75
],
86
"analysis-include": [
9-
"./benchmark/axios/lib/**/*.js"
7+
"./benchmark/commanderjs/**/*.js"
108
],
119
"analysis-exclude": [
12-
"./benchmark/axios/**/*.test.js",
13-
"./benchmark/axios/test/**/*.*",
14-
"./benchmark/axios/node_modules/**/*.*"
10+
"./benchmark/commanderjs/**/*.test.js",
11+
"./benchmark/commanderjs/test/**/*.*",
12+
"./benchmark/commanderjs/node_modules/**/*.*"
1513
],
1614

1715
"crossover": "javascript-tree",
@@ -21,11 +19,12 @@
2119
"preset": "DynaMOSA",
2220
"modules": [
2321
"@syntest/javascript",
24-
"@syntest/plugin-core-metric-middleware-file-writer",
25-
"@syntest/plugin-core-metric-middleware-statistics",
26-
"@syntest/plugin-core-search-algorithm-experimental"
22+
"@syntest/plugin-event-listener-state-storage",
23+
"@syntest/plugin-metric-middleware-file-writer",
24+
"@syntest/plugin-metric-middleware-statistics",
25+
"@syntest/plugin-javascript-event-listener-state-storage"
2726
],
28-
"console-log-level": "info",
27+
"console-log-level": "warn",
2928
"file-log-level": [
3029
"info",
3130
"warn",
@@ -34,5 +33,5 @@
3433
],
3534
"metric-middleware-pipeline": ["metric-middleware-statistics", "metric-middleware-file-writer"],
3635
"output-metrics": ["*"],
37-
"total-time": 10
36+
"total-time": 30
3837
}

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ ENV time=
99
# clone the repos
1010
WORKDIR /app/
1111
# Replace by the fork
12-
RUN git clone https://github.com/syntest-framework/syntest-core.git
13-
WORKDIR /app/syntest-core
12+
RUN git clone https://github.com/syntest-framework/syntest-framework.git
13+
WORKDIR /app/syntest-framework
1414
RUN git fetch
1515
RUN git checkout experiment-javascript
1616
WORKDIR /app/
@@ -22,7 +22,7 @@ WORKDIR /app/
2222
RUN git clone https://github.com/syntest-framework/syntest-javascript-benchmark.git
2323

2424
# Install and build core
25-
WORKDIR /app/syntest-core
25+
WORKDIR /app/syntest-framework
2626
RUN npm install
2727
RUN npm run build
2828

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ cd syntest
3232

3333
2. Clone all projects (i.e., `core`, `javascript`, and `benchmark`) in the same directory:
3434
```bash
35-
git clone [email protected]:syntest-framework/syntest-core.git
35+
git clone [email protected]:syntest-framework/syntest-framework.git
3636
git clone [email protected]:syntest-framework/syntest-javascript.git
3737
git clone [email protected]:syntest-framework/syntest-javascript-benchmark.git
3838
```
3939

4040
3. Move into the `core` project, install all the dependencies, and build the project to compile all the TypeScript code:
4141
```bash
42-
cd syntest-core
42+
cd syntest-framework
4343
npm install
4444
npm run build
4545
```

benchmark/artificial/class.js

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
class X {
2+
_current
3+
4+
constructor //*(*(8))
5+
(y) {
6+
this.x = y
7+
}
8+
9+
10+
change(mutation) {
11+
this._current += mutation
12+
}
13+
14+
set current(value) {
15+
this._current = value
16+
}
17+
18+
get current() {
19+
return this._current
20+
}
21+
}
22+
23+
class Z {
24+
_current
25+
26+
set current(value) {
27+
this._current = value
28+
}
29+
30+
get current() {
31+
return this._current
32+
}
33+
}
34+
35+
function createX() {
36+
return new X()
37+
}
38+
39+
function Y () {
40+
console.log()
41+
}
42+
43+
Y.prototype = {
44+
a: () => {
45+
console.log('Y.a')
46+
},
47+
b () {}
48+
}
49+
Y.prototype.c = function () {}
50+
51+
const A = {
52+
a: () => {
53+
console.log('A.a')
54+
}
55+
}
56+
A.b = () => {
57+
console.log('A.b')
58+
}
59+
A.prototype = {
60+
c: () => {
61+
console.log('A.c')
62+
}
63+
}
64+
65+
function B () {
66+
this.a = 5
67+
}
68+
69+
70+
exports.X = X
71+
// exports.Y = Y
72+
// exports.Z = Z
73+
74+
// exports.A = A
75+
// exports.B = B
76+
77+
// exports.createX = createX

benchmark/decimal.js

Submodule decimal.js added at 7f01abd

0 commit comments

Comments
 (0)