Skip to content

Commit e848745

Browse files
authored
docs: compare java-web with CheerpJ 5.0 on Java 25 in the README (#80)
1 parent 5d21bef commit e848745

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,26 @@ See [docs/node.md](docs/node.md).
5252

5353
Details: [docs/support.md](docs/support.md).
5454

55+
## Compared with CheerpJ
56+
57+
[CheerpJ](https://cheerpj.com/) 5.0 takes the same page calls (`cheerpjInit`,
58+
`cheerpjRunMain`), so the two can be compared on one page. Medians, measured
59+
2026-11-08 in headless Chromium on one machine, with java-web 0.1.3 from npm
60+
and CheerpJ 5.0 from its CDN. Cold means an empty browser cache; the downloads
61+
are the runtime and JDK only, not the program's own jars.
62+
63+
| | java-web 0.1.3 | CheerpJ 5.0 |
64+
|---|---|---|
65+
| Java 25 | yes | preview |
66+
| Hello world, cold | 0.55 s, 3.7 MB | 4.3 s, 10.8 MB |
67+
| Hello world, warm | 0.17 s, nothing downloaded | 2.4 s, 3.8 MB |
68+
| javac on a WPILib robot template, cold | 2.8 s, 7.4 MB | 10.1 s, 15.8 MB |
69+
| The same at a tenth of one CPU | 96 s | 382 s |
70+
| AWT and Swing windows | not yet | yes |
71+
| License | AGPL-3.0 | free for personal, educational, evaluation and non-commercial open-source use, loaded from CheerpJ's CDN; business use needs a licence |
72+
73+
CheerpJ also runs Java 8, 11, 17 and 21, applets and JNLP; java-web runs only Java 25.
74+
5575
## Develop
5676

5777
You need Node 23.6+, pnpm, curl and bzip2 on Linux or macOS.

0 commit comments

Comments
 (0)