Language
C++
Compiler
gcc 11.1.0
Options
Optimization
Boost 1.78.0
C++2a
no pedantic
Raw compiler options
-lgmp
$ g++ prog.cc -O2 -march=native -I/opt/wandbox/boost-1.78.0-gcc-11.1.0/include -std=c++2a -lgmp
0.151832s factorial<T>(50'000)
0.007725s r.str()
0.159605s bench<bmp::mpz_int>()
length: 213237
-----
0.200428s factorial<T>(50'000)
1.372641s r.str()
1.573096s bench<bmp::cpp_int>()
length: 213237
Exit Code:
0