Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Commit 6d4a7cc

Browse files
rurorujj
andauthored
Add a new benchmark to measure impact zgc in comparison to parallel GC (#10464)
* Add explicit flushing * update hikariCP settings in hikari cp * Update majavat templates to use each Co-authored-by: jj <keistaslogairkosulys@gmail.com>
1 parent 2264534 commit 6d4a7cc

18 files changed

Lines changed: 232 additions & 68 deletions

frameworks/Clojure/kit/deps.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
;; HTML templating
1717
selmer/selmer {:mvn/version "1.12.62"}
18-
org.clojars.jj/majavat {:mvn/version "1.13.2"}
18+
org.clojars.jj/majavat {:mvn/version "1.15.1"}
1919
hiccup/hiccup {:mvn/version "2.0.0"}
2020

2121
;; Database
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head><title>Fortunes</title></head>
4+
<body>
5+
<table>
6+
<tr><th>id</th><th>message</th></tr>
7+
{% each message in messages %}
8+
<tr>
9+
<td>{{message.id}}</td>
10+
<td>{{message.message}}</td>
11+
</tr>
12+
{% endeach %}
13+
</table>
14+
</body>
15+
</html>

frameworks/Clojure/kit/src/clj/io/github/kit_clj/te_bench/core.clj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
[integrant.core :as ig]
55
[io.github.kit-clj.te-bench.config :as config]
66
[io.github.kit-clj.te-bench.env :refer [defaults]]
7-
8-
;; Edges
97
[io.github.kit-clj.te-bench.cache.inmem]
108
[io.github.kit-clj.te-bench.db.sql.hikari]
119
[io.github.kit-clj.te-bench.web.handler]

frameworks/Clojure/kit/src/clj/io/github/kit_clj/te_bench/web/controllers/bench.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
(def ^:const HELLO_WORLD "Hello, World!")
2020
(def ^:const MAX_ID_ZERO_IDX 9999)
2121
(def ^:const CACHE_TTL (* 24 60 60))
22-
(def ^:private render-fortune (majavat/build-renderer "html/fortunes.html"
22+
(def ^:private render-fortune (majavat/build-renderer "html/majavat-fortunes.html"
2323
{:renderer (->StringRenderer
2424
{:sanitizer (->Html)})}))
2525

frameworks/Clojure/ring-http-exchange/benchmark_config.json

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"language": "Clojure",
1515
"flavor": "None",
1616
"orm": "Raw",
17-
"platform": "None",
17+
"platform": "Ring",
1818
"webserver": "None",
1919
"os": "Linux",
2020
"database_os": "Linux",
@@ -34,14 +34,54 @@
3434
"language": "Clojure",
3535
"flavor": "None",
3636
"orm": "Raw",
37-
"platform": "None",
37+
"platform": "Ring",
3838
"webserver": "None",
3939
"os": "Linux",
4040
"database_os": "Linux",
4141
"display_name": "ring-http-exchange-robaho",
4242
"notes": "",
4343
"versus": "httpserver-robaho"
4444
},
45+
"robaho-zgc": {
46+
"json_url": "/json",
47+
"plaintext_url": "/plaintext",
48+
"fortune_url": "/fortunes",
49+
"port": 8080,
50+
"approach": "Realistic",
51+
"classification": "Platform",
52+
"database": "postgres",
53+
"framework": "None",
54+
"language": "Clojure",
55+
"flavor": "None",
56+
"orm": "Raw",
57+
"platform": "Ring",
58+
"webserver": "None",
59+
"os": "Linux",
60+
"database_os": "Linux",
61+
"display_name": "ring-http-exchange-robaho-zgc",
62+
"notes": "",
63+
"versus": "ring-http-exchange-robaho"
64+
},
65+
"robaho-is": {
66+
"json_url": "/json",
67+
"plaintext_url": "/plaintext",
68+
"fortune_url": "/fortunes",
69+
"port": 8080,
70+
"approach": "Realistic",
71+
"classification": "Platform",
72+
"database": "postgres",
73+
"framework": "None",
74+
"language": "Clojure",
75+
"flavor": "None",
76+
"orm": "Raw",
77+
"platform": "Ring",
78+
"webserver": "None",
79+
"os": "Linux",
80+
"database_os": "Linux",
81+
"display_name": "ring-http-exchange-robaho-is",
82+
"notes": "",
83+
"versus": "ring-http-exchange-robaho"
84+
},
4585
"graalvm": {
4686
"json_url": "/json",
4787
"plaintext_url": "/plaintext",
@@ -54,7 +94,7 @@
5494
"language": "Clojure",
5595
"flavor": "None",
5696
"orm": "Raw",
57-
"platform": "None",
97+
"platform": "Ring",
5898
"webserver": "None",
5999
"os": "Linux",
60100
"database_os": "Linux",
@@ -74,7 +114,7 @@
74114
"language": "Clojure",
75115
"flavor": "None",
76116
"orm": "Raw",
77-
"platform": "None",
117+
"platform": "Ring",
78118
"webserver": "None",
79119
"os": "Linux",
80120
"database_os": "Linux",
@@ -94,7 +134,7 @@
94134
"language": "Clojure",
95135
"flavor": "None",
96136
"orm": "Raw",
97-
"platform": "None",
137+
"platform": "Ring",
98138
"webserver": "None",
99139
"os": "Linux",
100140
"database_os": "Linux",

frameworks/Clojure/ring-http-exchange/config.toml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ platform = "httpserver"
1515
webserver = "None"
1616
versus = "httpserver"
1717

18-
1918
[graalvm]
2019
urls.plaintext = "/plaintext"
2120
urls.json = "/json"
@@ -57,3 +56,31 @@ orm = "Raw"
5756
platform = "httpserver"
5857
webserver = "None"
5958
versus = "httpserver-robaho-graalvm"
59+
60+
[robaho-zgc]
61+
urls.plaintext = "/plaintext"
62+
urls.json = "/json"
63+
urls.fortune = "/fortunes"
64+
approach = "Realistic"
65+
classification = "Platform"
66+
database = "postgres"
67+
database_os = "Linux"
68+
os = "Linux"
69+
orm = "Raw"
70+
platform = "httpserver"
71+
webserver = "None"
72+
versus = "ring-http-exchange-robaho"
73+
74+
[robaho-is]
75+
urls.plaintext = "/plaintext"
76+
urls.json = "/json"
77+
urls.fortune = "/fortunes"
78+
approach = "Realistic"
79+
classification = "Platform"
80+
database = "postgres"
81+
database_os = "Linux"
82+
os = "Linux"
83+
orm = "Raw"
84+
platform = "httpserver"
85+
webserver = "None"
86+
versus = "ring-http-exchange-robaho"

frameworks/Clojure/ring-http-exchange/project.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
:dependencies [[org.clojure/clojure "1.12.3"]
88
[org.clojure/tools.logging "1.3.0"]
9-
[org.clojars.jj/ring-http-exchange "1.2.12"]
9+
[org.clojars.jj/ring-http-exchange "1.2.14"]
1010
[seancorfield/next.jdbc "1.2.659"]
11-
[org.clojars.jj/majavat "1.13.2"]
11+
[org.clojars.jj/majavat "1.15.1"]
1212
[hikari-cp "3.3.0"]
1313
[org.clojars.jj/boa-sql "1.0.0"]
1414
[org.postgresql/postgresql "42.7.8"]

frameworks/Clojure/ring-http-exchange/resources/fortune.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<body>
55
<table>
66
<tr><th>id</th><th>message</th></tr>
7-
{% for message in messages %}
7+
{% each message in messages %}
88
<tr>
99
<td>{{message.id}}</td>
1010
<td>{{message.message}}</td>
1111
</tr>
12-
{% endfor %}
12+
{% endeach %}
1313
</table>
1414
</body>
1515
</html>

frameworks/Clojure/ring-http-exchange/ring-http-exchange-graalvm.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ COPY --from=lein /ring-http-exchange/target/ring-http-server-1.0.0-standalone.ja
1111

1212
EXPOSE 8080
1313

14-
CMD ["java", "-server", "-XX:+UseZGC", "-XX:MaxRAMPercentage=70", "-Dclojure.compiler.direct-linking=true", "-jar", "app.jar"]
14+
CMD ["java", "-server", "-XX:+UseParallelGC", "-XX:MaxRAMPercentage=70", "-Dclojure.compiler.direct-linking=true", "-jar", "app.jar"]

frameworks/Clojure/ring-http-exchange/ring-http-exchange-robaho-graalvm.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ COPY --from=lein /ring-http-exchange/target/ring-http-server-1.0.0-standalone.ja
1111

1212
EXPOSE 8080
1313

14-
CMD ["java", "-server", "-XX:+UseZGC", "-XX:MaxRAMPercentage=70", "-Dclojure.compiler.direct-linking=true", "-jar", "app.jar"]
14+
CMD ["java", "-server", "-XX:+UseParallelGC", "-XX:MaxRAMPercentage=70", "-Dclojure.compiler.direct-linking=true", "-jar", "app.jar"]

0 commit comments

Comments
 (0)