Skip to content

Commit 22e7482

Browse files
committed
Tell Acton to target native platform
By default, Acton optimizes for portability, so on Linux, the output binary targets GNU libc 2.27, which is rather old (~Ubuntu 18.04). It also only uses base features of the x86_64 CPU, so features like AVX512 or similar would not be used. By setting --target native, the output executable is instead optimized for the machine we are running on and can typically run much faster, sometimes up to 2x faster.
1 parent d658a51 commit 22e7482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bench/bench_acton.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ environments:
2424
compiler: actonc
2525
compiler_version_command: actonc --version
2626
version: latest
27-
build: actonc app.act
27+
build: actonc --target native app.act
2828
after_build:
2929
- mv app out
3030
out_dir: out

0 commit comments

Comments
 (0)