File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -145,39 +145,39 @@ gunzip 2023_06_430_65B0_in_network_rates.json.gz
145
145
``` sh
146
146
scala-cli --power package --assembly example02.sc --force -o example02.jar
147
147
ls -l ./example02.jar
148
- time ./example02.jar -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseEpsilonGC -J-Xms8m -J-Xmx8m -J-XX:+AlwaysPreTouch < test .json 2> /dev/null
148
+ time ./example02.jar -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseEpsilonGC -J-Xms8m -J-Xmx8m -J-XX:+AlwaysPreTouch < 2023_06_430_65B0_in_network_rates .json 2> /dev/null
149
149
```
150
150
Expected output:
151
151
``` text
152
- real 0m0.085s
153
- user 0m0.110s
154
- sys 0m0.017s
152
+ real 1m6,675s
153
+ user 1m3,442s
154
+ sys 0m3,448s
155
155
```
156
156
157
157
### Build GraalVM native image, print its size, and measure its start up time
158
158
159
159
``` sh
160
160
scala-cli --power package --graalvm-jvm-id graalvm-java21:21.0.1 --native-image example02.sc --force -o example02_graalvm.bin -- --no-fallback --gc=epsilon
161
161
ls -l ./example02_graalvm.bin
162
- time ./example02_graalvm.bin < test .json 2> /dev/null
162
+ time ./example02_graalvm.bin < 2023_06_430_65B0_in_network_rates .json 2> /dev/null
163
163
```
164
164
Expected output:
165
165
``` text
166
- real 0m0.004s
167
- user 0m0.000s
168
- sys 0m0.003s
166
+ real 1m50,180s
167
+ user 1m46,471s
168
+ sys 0m3,436s
169
169
```
170
170
171
171
### Build Scala Native image, print its size, and measure its start up time
172
172
173
173
``` sh
174
- scala-cli --power package --native-version 0.5.4 --native example02.sc --native-mode release-full --native-gc none --force -o example02_native.bin
174
+ scala-cli --power package --native-version 0.5.4 --native example02.sc --native-mode release-full --native-gc none --native-lto thin -- force -o example02_native.bin
175
175
ls -l ./example02_native.bin
176
- time ./example02_native.bin < test .json 2> /dev/null
176
+ time ./example02_native.bin < 2023_06_430_65B0_in_network_rates .json 2> /dev/null
177
177
```
178
178
Expected output:
179
179
``` text
180
- real 0m0.003s
181
- user 0m0.003s
182
- sys 0m0.000s
180
+ real 1m25,513s
181
+ user 1m21,669s
182
+ sys 0m3,832s
183
183
```
You can’t perform that action at this time.
0 commit comments