$ time ./a.out
4./a.out 18.75s user 0.01s system 99% cpu 18.879 total
$ time ./b.out
4./b.out 23.44s user 0.02s system 99% cpu 23.550 total
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
a.s, b.sはそれぞれ関数fに関する抜粋。