Skip to content

Commit f9ed633

Browse files
greenlaw110NateBrady23
authored andcommitted
[ci fw-only Java/act] Act 1.7.0, add tests for hibernate/eclipselink integration (#3222)
* add act-ebean-pgsql-rythm to compare rythm vs mustache template engine * disable session resolve for the tests * add hibernate tests * jpa tests * update README for act - add local test results for hibernate and eclipselink * update README for act - add db tests comparing table between different technologies * add tests for hibernate and eclipselink * [ci fw-only Java/act] remove some test combinations from act * add back tailored tests from Act as we found it should be caused by an act-ebean issue * [ci fw-only Java/act] set-hibernate-mysql-rythm.sh shall use hibernate_mysql_rythm profile * [ci fw-only Java/act] set database isolatetion level to READ_COMMITTED for all sql db tests
1 parent 0c05177 commit f9ed633

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1015
-32
lines changed

frameworks/Java/act/README.md

Lines changed: 74 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is the ActFramework portion of a [benchmarking test suite](../) comparing a variety of web development platforms.
44

5-
This is using [ActFramework R1.6.4](http://actframework.org) to build an application.
5+
This is using [ActFramework 1.7.0-teb-SNAPSHOT](http://actframework.org) to build an application.
66

77
## Local benchmark result
88

@@ -13,7 +13,7 @@ This is using [ActFramework R1.6.4](http://actframework.org) to build an applica
1313
| plaintext | 1188983.73 |
1414
| json | 254222.40 |
1515

16-
### MySQL
16+
### MySQL - Ebean
1717

1818
| Test | Throughput |
1919
| ---- | ----------: |
@@ -22,7 +22,7 @@ This is using [ActFramework R1.6.4](http://actframework.org) to build an applica
2222
| updates (20) | 568.46 |
2323
| fortunes | 18848.39 |
2424

25-
### Postgresql
25+
### Postgresql- Ebean
2626

2727
| Test | Throughput |
2828
| ---- | ---------: |
@@ -31,6 +31,41 @@ This is using [ActFramework R1.6.4](http://actframework.org) to build an applica
3131
| updates (20) | 865 |
3232
| fortunes | 27560 |
3333

34+
### MySQL - JPA/Hibernate
35+
36+
| Test | Throughput |
37+
| ---- | ----------: |
38+
| db | 39588.35 |
39+
| multiple queries (20) | 2518.09 |
40+
| updates (20) | 929.35 |
41+
| fortunes | 33314.78 |
42+
43+
### Postgresql- JPA/Hibernate
44+
45+
| Test | Throughput |
46+
| ---- | ---------: |
47+
| db | 41079.85 |
48+
| multiple queries (20) | 3030.14 |
49+
| updates (20) | 21.59 |
50+
| fortunes | 32490.22 |
51+
52+
### MySQL - JPA/EclipseLink
53+
54+
| Test | Throughput |
55+
| ---- | ----------: |
56+
| db | 98415.07 |
57+
| multiple queries (20) | 44483.81 |
58+
| updates (20) | 2213.31 |
59+
| fortunes | 37590.55 |
60+
61+
### Postgresql- JPA/EclipseLink
62+
63+
| Test | Throughput |
64+
| ---- | ---------: |
65+
| db | 103347.02 |
66+
| multiple queries (20) | 49868.77 |
67+
| updates (20) | 4167.03 |
68+
| fortunes | 34565.04 |
3469

3570
### Mongodb
3671

@@ -40,3 +75,39 @@ This is using [ActFramework R1.6.4](http://actframework.org) to build an applica
4075
| multiple queries (20) | 2197.53 |
4176
| updates (20) | 1039.60 |
4277
| fortunes | 24301.25 |
78+
79+
## SQL database test results comparing
80+
81+
### DB
82+
83+
| Technology | MySQL | Postgresql |
84+
| ---------- | ----: | ---------: |
85+
| Ebean | 18160.19 | 32303.52 |
86+
| JPA/Hibernate | 39588.35 | 41079.85 |
87+
| JPA/EclipseLink | 98415.07 | 103347.02 |
88+
89+
### Multiple Queries
90+
91+
| Technology | MySQL | Postgresql |
92+
| ---------- | ----: | ---------: |
93+
| Ebean | 1918.49 | 3268.78 |
94+
| JPA/Hibernate | 2518.09 | 3030.14 |
95+
| JPA/EclipseLink | 44483.81 | 49868.77 |
96+
97+
98+
### Updates
99+
100+
| Technology | MySQL | Postgresql |
101+
| ---------- | ----: | ---------: |
102+
| Ebean | 568.46 | 865 |
103+
| JPA/Hibernate | 929.35 | 21.59 |
104+
| JPA/EclipseLink | 2213.31 | 4167.03 |
105+
106+
### Fortunes
107+
108+
| Technology | MySQL | Postgresql |
109+
| ---------- | ----: | ---------: |
110+
| Ebean | 18848.39 | 27560 |
111+
| JPA/Hibernate | 33314.78 | 32490.22 |
112+
| JPA/EclipseLink | 37590.55 | 34565.04 |
113+

frameworks/Java/act/benchmark_config.json

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,25 @@
4343
"notes": "",
4444
"versus": "undertow"
4545
},
46+
"ebean-pgsql-rythm": {
47+
"setup_file": "setup-ebean-pgsql-rythm",
48+
"fortune_url": "/fortunes",
49+
"port": 5460,
50+
"approach": "Realistic",
51+
"classification": "Fullstack",
52+
"database": "Postgres",
53+
"framework": "actframework",
54+
"language": "Java",
55+
"flavor": "None",
56+
"orm": "Full",
57+
"platform": "Undertow",
58+
"webserver": "None",
59+
"os": "Linux",
60+
"database_os": "Linux",
61+
"display_name": "act-ebean-pgsql",
62+
"notes": "",
63+
"versus": "undertow"
64+
},
4665
"ebean-mysql": {
4766
"setup_file": "setup-ebean-mysql",
4867
"db_url": "/db",
@@ -65,6 +84,189 @@
6584
"notes": "",
6685
"versus": "undertow"
6786
},
87+
"ebean-mysql-rythm": {
88+
"setup_file": "setup-ebean-mysql-rythm",
89+
"fortune_url": "/fortunes",
90+
"port": 5460,
91+
"approach": "Realistic",
92+
"classification": "Fullstack",
93+
"database": "MySQL",
94+
"framework": "actframework",
95+
"language": "Java",
96+
"flavor": "None",
97+
"orm": "Full",
98+
"platform": "Undertow",
99+
"webserver": "None",
100+
"os": "Linux",
101+
"database_os": "Linux",
102+
"display_name": "act-ebean-mysql",
103+
"notes": "",
104+
"versus": "undertow"
105+
},
106+
"hibernate-pgsql": {
107+
"setup_file": "setup-hibernate-pgsql",
108+
"db_url": "/db",
109+
"query_url": "/queries?queries=",
110+
"fortune_url": "/fortunes",
111+
"update_url": "/updates?queries=",
112+
"port": 5460,
113+
"approach": "Realistic",
114+
"classification": "Fullstack",
115+
"database": "Postgres",
116+
"framework": "actframework",
117+
"language": "Java",
118+
"flavor": "None",
119+
"orm": "Full",
120+
"platform": "Undertow",
121+
"webserver": "None",
122+
"os": "Linux",
123+
"database_os": "Linux",
124+
"display_name": "act-hibernate-pgsql",
125+
"notes": "",
126+
"versus": "undertow"
127+
},
128+
"hibernate-pgsql-rythm": {
129+
"setup_file": "setup-hibernate-pgsql-rythm",
130+
"fortune_url": "/fortunes",
131+
"port": 5460,
132+
"approach": "Realistic",
133+
"classification": "Fullstack",
134+
"database": "Postgres",
135+
"framework": "actframework",
136+
"language": "Java",
137+
"flavor": "None",
138+
"orm": "Full",
139+
"platform": "Undertow",
140+
"webserver": "None",
141+
"os": "Linux",
142+
"database_os": "Linux",
143+
"display_name": "act-hibernate-pgsql",
144+
"notes": "",
145+
"versus": "actframework-hibernate-pgsql"
146+
},
147+
"hibernate-mysql": {
148+
"setup_file": "setup-hibernate-mysql",
149+
"db_url": "/db",
150+
"query_url": "/queries?queries=",
151+
"fortune_url": "/fortunes",
152+
"update_url": "/updates?queries=",
153+
"port": 5460,
154+
"approach": "Realistic",
155+
"classification": "Fullstack",
156+
"database": "MySQL",
157+
"framework": "actframework",
158+
"language": "Java",
159+
"flavor": "None",
160+
"orm": "Full",
161+
"platform": "Undertow",
162+
"webserver": "None",
163+
"os": "Linux",
164+
"database_os": "Linux",
165+
"display_name": "act-hibernate-mysql",
166+
"notes": "",
167+
"versus": "undertow"
168+
},
169+
"hibernate-mysql-rythm": {
170+
"setup_file": "setup-hibernate-mysql-rythm",
171+
"fortune_url": "/fortunes",
172+
"port": 5460,
173+
"approach": "Realistic",
174+
"classification": "Fullstack",
175+
"database": "MySQL",
176+
"framework": "actframework",
177+
"language": "Java",
178+
"flavor": "None",
179+
"orm": "Full",
180+
"platform": "Undertow",
181+
"webserver": "None",
182+
"os": "Linux",
183+
"database_os": "Linux",
184+
"display_name": "act-hibernate-mysql",
185+
"notes": "",
186+
"versus": "undertow"
187+
},
188+
"eclipselink-pgsql": {
189+
"setup_file": "setup-eclipselink-pgsql",
190+
"db_url": "/db",
191+
"query_url": "/queries?queries=",
192+
"fortune_url": "/fortunes",
193+
"update_url": "/updates?queries=",
194+
"port": 5460,
195+
"approach": "Realistic",
196+
"classification": "Fullstack",
197+
"database": "Postgres",
198+
"framework": "actframework",
199+
"language": "Java",
200+
"flavor": "None",
201+
"orm": "Full",
202+
"platform": "Undertow",
203+
"webserver": "None",
204+
"os": "Linux",
205+
"database_os": "Linux",
206+
"display_name": "act-eclipselink-pgsql",
207+
"notes": "",
208+
"versus": "undertow"
209+
},
210+
"eclipselink-pgsql-rythm": {
211+
"setup_file": "setup-eclipselink-pgsql-rythm",
212+
"fortune_url": "/fortunes",
213+
"port": 5460,
214+
"approach": "Realistic",
215+
"classification": "Fullstack",
216+
"database": "Postgres",
217+
"framework": "actframework",
218+
"language": "Java",
219+
"flavor": "None",
220+
"orm": "Full",
221+
"platform": "Undertow",
222+
"webserver": "None",
223+
"os": "Linux",
224+
"database_os": "Linux",
225+
"display_name": "act-eclipselink-pgsql",
226+
"notes": "",
227+
"versus": "undertow"
228+
},
229+
"eclipselink-mysql": {
230+
"setup_file": "setup-eclipselink-mysql",
231+
"db_url": "/db",
232+
"query_url": "/queries?queries=",
233+
"fortune_url": "/fortunes",
234+
"update_url": "/updates?queries=",
235+
"port": 5460,
236+
"approach": "Realistic",
237+
"classification": "Fullstack",
238+
"database": "MySQL",
239+
"framework": "actframework",
240+
"language": "Java",
241+
"flavor": "None",
242+
"orm": "Full",
243+
"platform": "Undertow",
244+
"webserver": "None",
245+
"os": "Linux",
246+
"database_os": "Linux",
247+
"display_name": "act-eclipselink-mysql",
248+
"notes": "",
249+
"versus": "undertow"
250+
},
251+
"eclipselink-mysql-rythm": {
252+
"setup_file": "setup-eclipselink-mysql-rythm",
253+
"fortune_url": "/fortunes",
254+
"port": 5460,
255+
"approach": "Realistic",
256+
"classification": "Fullstack",
257+
"database": "MySQL",
258+
"framework": "actframework",
259+
"language": "Java",
260+
"flavor": "None",
261+
"orm": "Full",
262+
"platform": "Undertow",
263+
"webserver": "None",
264+
"os": "Linux",
265+
"database_os": "Linux",
266+
"display_name": "act-eclipselink-mysql",
267+
"notes": "",
268+
"versus": "undertow"
269+
},
68270
"morphia-mongo": {
69271
"setup_file": "setup-morphia-mongo",
70272
"db_url": "/db",
@@ -86,6 +288,25 @@
86288
"display_name": "act-morphia",
87289
"notes": "",
88290
"versus": "undertow"
291+
},
292+
"morphia-mongo-rythm": {
293+
"setup_file": "setup-morphia-mongo-rythm",
294+
"fortune_url": "/fortunes",
295+
"port": 5460,
296+
"approach": "Realistic",
297+
"classification": "Fullstack",
298+
"database": "MongoDB",
299+
"framework": "actframework",
300+
"language": "Java",
301+
"flavor": "None",
302+
"orm": "Full",
303+
"platform": "Undertow",
304+
"webserver": "None",
305+
"os": "Linux",
306+
"database_os": "Linux",
307+
"display_name": "act-morphia",
308+
"notes": "",
309+
"versus": "undertow"
89310
}
90311
}]
91312
}

0 commit comments

Comments
 (0)