Skip to content

Commit c2fe7b0

Browse files
committed
Updated GitHub action to install upx
Updated README.md file sizes
1 parent 4fdd683 commit c2fe7b0

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/tiny-java-containers.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030
#
3131
./setup-musl.sh
3232
#
33+
# Download upx
34+
#
35+
./setup-upx.sh
36+
#
3337
# Hello World
3438
#
3539
cd helloworld

tiny-java-containers/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,15 @@ noting:
9797
executable, you can be confident it is also statically linked.
9898

9999
2. Both executables are the result of compiling a Java bytecode application into
100-
native machine code. The uncompressed executable is only ~5.3MB! There's no
100+
native machine code. The uncompressed executable is only ~6.3MB! There's no
101101
JVM, no JARs, no JIT compiler and none of the overhead it imposes. Both
102102
start extremely fast as there is minimal startup cost.
103103

104-
3. The `upx` compressed executable is about 75% smaller, 1.3MB vs. 5.3MB! With
104+
3. The `upx` compressed executable is over 70% smaller, 1.7MB vs. 6.3MB! With
105105
`upx` the application self-extracts quickly but does incur a cost of about
106-
100ms for decompression. See this blog for a deep dive on [GraalVM Native Image and UPX](https://medium.com/graalvm/compressed-graalvm-native-images-4d233766a214).
106+
100ms for decompression. See this blog for a deep dive on [GraalVM Native
107+
Image and
108+
UPX](https://medium.com/graalvm/compressed-graalvm-native-images-4d233766a214).
107109

108110
### Container Images
109111

@@ -114,7 +116,7 @@ executable.
114116

115117
```shell
116118
REPOSITORY TAG IMAGE ID CREATED SIZE
117-
hello upx 4d122bd39a8a About a minute ago 1.36 MB
119+
hello upx 4d122bd39a8a About a minute ago 1.78 MB
118120
```
119121

120122
This is a tiny container image and yet it contains a fully functional and

0 commit comments

Comments
 (0)