|
@@ -1,113 +1,39 @@
|
|
|
# ActFramework Benchmarking Test
|
|
|
|
|
|
-This is the ActFramework portion of a [benchmarking test suite](../) comparing a variety of web development platforms.
|
|
|
-
|
|
|
-This is using [ActFramework 1.7.0-teb-SNAPSHOT](http://actframework.org) to build an application.
|
|
|
-
|
|
|
-## Local benchmark result
|
|
|
-
|
|
|
-### Plain text and JSON
|
|
|
-
|
|
|
-| Test | Throughput |
|
|
|
-| ---- | ---------: |
|
|
|
-| plaintext | 1188983.73 |
|
|
|
-| json | 254222.40 |
|
|
|
-
|
|
|
-### MySQL - Ebean
|
|
|
-
|
|
|
-| Test | Throughput |
|
|
|
-| ---- | ----------: |
|
|
|
-| db | 18160.19 |
|
|
|
-| multiple queries (20) | 1918.49 |
|
|
|
-| updates (20) | 568.46 |
|
|
|
-| fortunes | 18848.39 |
|
|
|
-
|
|
|
-### Postgresql- Ebean
|
|
|
-
|
|
|
-| Test | Throughput |
|
|
|
-| ---- | ---------: |
|
|
|
-| db | 32303.52 |
|
|
|
-| multiple queries (20) | 3268.78 |
|
|
|
-| updates (20) | 162.43 |
|
|
|
-| fortunes | 27560 |
|
|
|
-
|
|
|
-### MySQL - JPA/Hibernate
|
|
|
+[ActFramework](https://github.com/actframework/actframework) Expressive, fast and testable web framework designed by Java developer for Java developer
|
|
|
|
|
|
-| Test | Throughput |
|
|
|
-| ---- | ----------: |
|
|
|
-| db | 18545.35 |
|
|
|
-| multiple queries (20) | 1082.51 |
|
|
|
-| updates (20) | 1070.53 |
|
|
|
-| fortunes | 18487.09 |
|
|
|
-
|
|
|
-### Postgresql- JPA/Hibernate
|
|
|
-
|
|
|
-| Test | Throughput |
|
|
|
-| ---- | ---------: |
|
|
|
-| db | 30873.39 |
|
|
|
-| multiple queries (20) | 1879.24 |
|
|
|
-| updates (20) | 220.74 |
|
|
|
-| fortunes | 20104.87 |
|
|
|
-
|
|
|
-### MySQL - JPA/EclipseLink
|
|
|
-
|
|
|
-| Test | Throughput |
|
|
|
-| ---- | ----------: |
|
|
|
-| db | 20312.97 |
|
|
|
-| multiple queries (20) | 1164.44 |
|
|
|
-| updates (20) | 932.74 |
|
|
|
-| fortunes | 19784.83 |
|
|
|
-
|
|
|
-### Postgresql- JPA/EclipseLink
|
|
|
-
|
|
|
-| Test | Throughput |
|
|
|
-| ---- | ---------: |
|
|
|
-| db | 30476.38 |
|
|
|
-| multiple queries (20) | 1887.21 |
|
|
|
-| updates (20) | 1420.72 |
|
|
|
-| fortunes | 20863.74 |
|
|
|
-
|
|
|
-### Mongodb
|
|
|
-
|
|
|
-| Test | Throughput |
|
|
|
-| ---- | ---------: |
|
|
|
-| db | 29527.92 |
|
|
|
-| multiple queries (20) | 1935.13 |
|
|
|
-| updates (20) | 1039.60 |
|
|
|
-| fortunes | 18174.70 |
|
|
|
+This is the ActFramework portion of a [benchmarking test suite](../) comparing a variety of web development platforms.
|
|
|
|
|
|
-## SQL database test results comparing
|
|
|
+```java
|
|
|
+public class AppEntry {
|
|
|
|
|
|
-### DB
|
|
|
+ @GetAction
|
|
|
+ public String sayHelloTo(@DefaultValue("World") String who) {
|
|
|
+ return "Hello " + who + "!";
|
|
|
+ }
|
|
|
|
|
|
-| Technology | MySQL | Postgresql |
|
|
|
-| ---------- | ----: | ---------: |
|
|
|
-| Ebean | 18160.19 | 32303.52 |
|
|
|
-| JPA/Hibernate | 39588.35 | 41079.85 |
|
|
|
-| JPA/EclipseLink | 98415.07 | 103347.02 |
|
|
|
+ public static void main(String[] args) throws Exception {
|
|
|
+ Act.start();
|
|
|
+ }
|
|
|
|
|
|
-### Multiple Queries
|
|
|
+}
|
|
|
+```
|
|
|
|
|
|
-| Technology | MySQL | Postgresql |
|
|
|
-| ---------- | ----: | ---------: |
|
|
|
-| Ebean | 1918.49 | 3268.78 |
|
|
|
-| JPA/Hibernate | 2518.09 | 3030.14 |
|
|
|
-| JPA/EclipseLink | 44483.81 | 49868.77 |
|
|
|
+### Plain Text Test
|
|
|
+* [Plain test source](src/main/resources/conf/json_plaintext/routes.conf)
|
|
|
|
|
|
+### JSON Encoding Test
|
|
|
+* [JSON test source](src/main/java/com/techempower/act/controller/HelloWorldController.java)
|
|
|
|
|
|
-### Updates
|
|
|
+### Single Query Test
|
|
|
+* [Single query test source](src/main/java/com/techempower/act/controller/WorldController.java)
|
|
|
|
|
|
-| Technology | MySQL | Postgresql |
|
|
|
-| ---------- | ----: | ---------: |
|
|
|
-| Ebean | 568.46 | 865 |
|
|
|
-| JPA/Hibernate | 929.35 | 21.59 |
|
|
|
-| JPA/EclipseLink | 2213.31 | 4167.03 |
|
|
|
+### Multiple Queries Test
|
|
|
+* [Multiple queries test source](src/main/java/com/techempower/act/controller/WorldController.java)
|
|
|
|
|
|
-### Fortunes
|
|
|
+### Database Update Test
|
|
|
+* [Database update test source](src/main/java/com/techempower/act/controller/WorldController.java)
|
|
|
|
|
|
-| Technology | MySQL | Postgresql |
|
|
|
-| ---------- | ----: | ---------: |
|
|
|
-| Ebean | 18848.39 | 27560 |
|
|
|
-| JPA/Hibernate | 33314.78 | 32490.22 |
|
|
|
-| JPA/EclipseLink | 37590.55 | 34565.04 |
|
|
|
+### Fortunes Test
|
|
|
+* [Fortunes test source](src/main/java/com/techempower/act/controller/FortuneController.java)
|
|
|
|