История изменений
Исправление no-such-file, (текущая версия) :
Вот этим тестировать надо
Там есть один фатальный недостаток:
$ ./tpi -T 6 -o pi.txt 50M
Number of threads must be a power of two
Облом. Запустил с -T8 посчитало на ~20% медленнее.
$ ./tpi -T 8 -o pi.txt 50M
Using 7.56GiB of RAM
Computation to 50000000 digits, formula=Chudnovsky
Output file=pi.txt, format=txt, binary result size=20.7MB
Binary Splitting
Depth=22, thread_level=0
mem max disk max operation compl lv
226M 226M 0 0 completed 0.0% 0
time = 12.799 s
Compute P, Q
148M 226M 0 0 completed
time = 0.219 s
Division
246M 246M 0 0 completed
time = 1.729 s
Sqrt
218M 246M 0 0 completed
time = 1.169 s
Final multiplication
375M 375M 0 0 completed
time = 0.645 s
Total time (binary result) = 16.561 s
Base conversion
217M 375M 0 0 completed
time = 5.957 s
Total time (base 10 result) = 22.518 s
Writing result to 'pi.txt'
В общем - не фонтан.
Исходная версия no-such-file, :
Вот этим тестировать надо
Там есть один фатальный недостаток:
$ ./tpi -T 6 -o pi.txt 50M
Number of threads must be a power of two
Облом. Запустил с -T8 посчитало на ~10% медленнее.
$ ./tpi -T 8 -o pi.txt 50M
Using 7.56GiB of RAM
Computation to 50000000 digits, formula=Chudnovsky
Output file=pi.txt, format=txt, binary result size=20.7MB
Binary Splitting
Depth=22, thread_level=0
mem max disk max operation compl lv
226M 226M 0 0 completed 0.0% 0
time = 12.799 s
Compute P, Q
148M 226M 0 0 completed
time = 0.219 s
Division
246M 246M 0 0 completed
time = 1.729 s
Sqrt
218M 246M 0 0 completed
time = 1.169 s
Final multiplication
375M 375M 0 0 completed
time = 0.645 s
Total time (binary result) = 16.561 s
Base conversion
217M 375M 0 0 completed
time = 5.957 s
Total time (base 10 result) = 22.518 s
Writing result to 'pi.txt'
В общем - не фонтан.