Skip to content

Commit 49df44d

Browse files
authored
Turn off multithreading for example02 when building and running Scala Native image
1 parent e41b947 commit 49df44d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jsoniter-scala-examples/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,13 @@ sys 0m3,436s
171171
### Build Scala Native image, print its size, and measure its running time
172172

173173
```sh
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
174+
scala-cli --power package --native-version 0.5.4 --native example02.sc --native-mode release-full --native-gc none --native-lto thin --native-multithreading=false --force -o example02_native.bin
175175
ls -l ./example02_native.bin
176176
time ./example02_native.bin < 2023_06_430_65B0_in_network_rates.json 2> /dev/null
177177
```
178178
Expected output:
179179
```text
180-
real 1m25,513s
181-
user 1m21,669s
182-
sys 0m3,832s
180+
real 1m27,921s
181+
user 1m22,861s
182+
sys 0m4,003s
183183
```

0 commit comments

Comments
 (0)