diff --git a/performance/Jamfile.v2 b/performance/Jamfile.v2 index 79429b54..13459f76 100644 --- a/performance/Jamfile.v2 +++ b/performance/Jamfile.v2 @@ -44,7 +44,7 @@ else TOMMATH = tommath ; } -exe performance_test : performance_test.cpp /boost/system//boost_system [ GLOB performance_test : *.cpp ] +exe performance_test : performance_test.cpp /boost/system//boost_system [ GLOB performance_test_files : *.cpp ] : release [ check-target-builds ../config//has_gmp : TEST_MPF TEST_MPZ TEST_MPQ gmp : ] [ check-target-builds ../config//has_mpfr : TEST_MPFR mpfr : ] @@ -55,11 +55,11 @@ exe performance_test : performance_test.cpp /boost/system//boost_system [ GLOB p TEST_CPP_INT_RATIONAL ; -exe miller_rabin_performance : miller_rabin_performance.cpp /boost/system//boost_system /boost/chrono//boost_chrono +exe miller_rabin_performance : miller_rabin_performance.cpp [ GLOB miller_rabin_performance_files : *.cpp ] /boost/system//boost_system /boost/chrono//boost_chrono : release [ check-target-builds ../config//has_gmp : TEST_MPF TEST_MPZ gmp : ] [ check-target-builds ../config//has_mpfr : TEST_MPFR mpfr : ] - #[ check-target-builds ../config//has_tommath : TEST_TOMMATH $(TOMMATH) : ] + [ check-target-builds ../config//has_tommath : TEST_TOMMATH $(TOMMATH) : ] TEST_CPP_DEC_FLOAT TEST_CPP_INT ; diff --git a/performance/miller_rabin_performance.cpp b/performance/miller_rabin_performance.cpp index bb21160b..7296837a 100644 --- a/performance/miller_rabin_performance.cpp +++ b/performance/miller_rabin_performance.cpp @@ -3,47 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#define BOOST_CHRONO_HEADER_ONLY - -#if !defined(TEST_MPZ) && !defined(TEST_TOMMATH) && !defined(TEST_CPP_INT) -#define TEST_MPZ -#define TEST_TOMMATH -#define TEST_CPP_INT -#endif - -#ifdef TEST_MPZ -#include -#endif -#ifdef TEST_TOMMATH -#include -#endif -#ifdef TEST_CPP_INT -#include -#endif -#include -#include -#include - -template -struct stopwatch -{ - typedef typename Clock::duration duration; - stopwatch() - { - m_start = Clock::now(); - } - duration elapsed() - { - return Clock::now() - m_start; - } - void reset() - { - m_start = Clock::now(); - } - - private: - typename Clock::time_point m_start; -}; +#include "miller_rabin_performance.hpp" unsigned allocation_count = 0; @@ -90,37 +50,6 @@ boost::chrono::duration test_miller_rabin_gmp() std::map results; double min_time = (std::numeric_limits::max)(); -template -boost::chrono::duration test_miller_rabin(const char* name) -{ - using namespace boost::random; - - stopwatch c; - - independent_bits_engine gen; - // - // We must use a different generator for the tests and number generation, otherwise - // we get false positives. - // - mt19937 gen2; - unsigned result_count = 0; - - for (unsigned i = 0; i < 1000; ++i) - { - IntType n = gen(); - if (boost::multiprecision::miller_rabin_test(n, 25, gen2)) - ++result_count; - } - boost::chrono::duration t = c.elapsed(); - double d = t.count(); - if (d < min_time) - min_time = d; - results[name] = d; - std::cout << "Time for " << std::setw(30) << std::left << name << " = " << d << std::endl; - std::cout << "Number of primes found = " << result_count << std::endl; - return t; -} - void generate_quickbook() { std::cout << "[table\n[[Integer Type][Relative Performance (Actual time in parenthesis)]]\n"; @@ -139,26 +68,18 @@ void generate_quickbook() int main() { - using namespace boost::multiprecision; -#ifdef TEST_CPP_INT - test_miller_rabin, et_off> >("cpp_int (no Expression templates)"); - test_miller_rabin("cpp_int"); - test_miller_rabin > >("cpp_int (128-bit cache)"); - test_miller_rabin > >("cpp_int (256-bit cache)"); - test_miller_rabin > >("cpp_int (512-bit cache)"); - test_miller_rabin > >("cpp_int (1024-bit cache)"); - test_miller_rabin("int1024_t"); - test_miller_rabin("checked_int1024_t"); -#endif -#ifdef TEST_MPZ - test_miller_rabin >("mpz_int (no Expression templates)"); - test_miller_rabin("mpz_int"); - std::cout << "Time for mpz_int (native Miller Rabin Test) = " << test_miller_rabin_gmp() << std::endl; -#endif -#ifdef TEST_TOMMATH - test_miller_rabin >("tom_int (no Expression templates)"); - test_miller_rabin("tom_int"); -#endif + test01(); + test02(); + test03(); + test04(); + test05(); + test06(); + test07(); + test08(); + test09(); + test10(); + test11(); + test12(); generate_quickbook(); diff --git a/performance/performance_test/test01.cpp b/performance/performance_test/test01.cpp deleted file mode 100644 index d9458bc7..00000000 --- a/performance/performance_test/test01.cpp +++ /dev/null @@ -1,13 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" - -void test01() -{ -#ifdef TEST_INT64 - test("boost::uint64_t", 64); -#endif -} diff --git a/performance/performance_test/test02.cpp b/performance/performance_test/test02.cpp deleted file mode 100644 index 8ee56a7e..00000000 --- a/performance/performance_test/test02.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPF) -#include -#endif - -void test02() -{ -#ifdef TEST_MPF - test("gmp_float", 50); -#endif -} diff --git a/performance/performance_test/test03.cpp b/performance/performance_test/test03.cpp deleted file mode 100644 index a267dc48..00000000 --- a/performance/performance_test/test03.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPF) -#include -#endif - -void test03() -{ -#ifdef TEST_MPF - test("gmp_float", 100); -#endif -} diff --git a/performance/performance_test/test04.cpp b/performance/performance_test/test04.cpp deleted file mode 100644 index 72d3bda5..00000000 --- a/performance/performance_test/test04.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPF) -#include -#endif - -void test04() -{ -#ifdef TEST_MPF - test("gmp_float", 500); -#endif -} diff --git a/performance/performance_test/test05.cpp b/performance/performance_test/test05.cpp deleted file mode 100644 index 0655aec9..00000000 --- a/performance/performance_test/test05.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPZ) -#include -#endif - -void test05() -{ -#ifdef TEST_MPZ - test("gmp_int", 128); -#endif -} diff --git a/performance/performance_test/test06.cpp b/performance/performance_test/test06.cpp deleted file mode 100644 index d1e7e7f3..00000000 --- a/performance/performance_test/test06.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPZ) -#include -#endif - -void test06() -{ -#ifdef TEST_MPZ - test("gmp_int", 256); -#endif -} diff --git a/performance/performance_test/test07.cpp b/performance/performance_test/test07.cpp deleted file mode 100644 index 8cf5f17b..00000000 --- a/performance/performance_test/test07.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPZ) -#include -#endif - -void test07() -{ -#ifdef TEST_MPZ - test("gmp_int", 512); -#endif -} diff --git a/performance/performance_test/test08.cpp b/performance/performance_test/test08.cpp deleted file mode 100644 index 9afe3d51..00000000 --- a/performance/performance_test/test08.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPZ) -#include -#endif - -void test08() -{ -#ifdef TEST_MPZ - test("gmp_int", 1024); -#endif -} diff --git a/performance/performance_test/test09.cpp b/performance/performance_test/test09.cpp deleted file mode 100644 index 341f8338..00000000 --- a/performance/performance_test/test09.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_INT) -#include -#endif - -void test09() -{ -#ifdef TEST_CPP_INT - //test, boost::multiprecision::et_off> >("cpp_int(unsigned, fixed)", 64); - //test, boost::multiprecision::et_off> >("cpp_int(fixed)", 64); - test, boost::multiprecision::et_off> >("cpp_int(fixed)", 128); -#endif -} diff --git a/performance/performance_test/test10.cpp b/performance/performance_test/test10.cpp deleted file mode 100644 index 3fbe6c66..00000000 --- a/performance/performance_test/test10.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_INT) -#include -#endif - -void test10() -{ -#ifdef TEST_CPP_INT - test, boost::multiprecision::et_off> >("cpp_int(fixed)", 256); -#endif -} diff --git a/performance/performance_test/test11.cpp b/performance/performance_test/test11.cpp deleted file mode 100644 index 205ce517..00000000 --- a/performance/performance_test/test11.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_INT) -#include -#endif - -void test11() -{ -#ifdef TEST_CPP_INT - test, boost::multiprecision::et_off> >("cpp_int(fixed)", 512); -#endif -} diff --git a/performance/performance_test/test12.cpp b/performance/performance_test/test12.cpp deleted file mode 100644 index ea43760b..00000000 --- a/performance/performance_test/test12.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_INT) -#include -#endif - -void test12() -{ -#ifdef TEST_CPP_INT - test, boost::multiprecision::et_off> >("cpp_int(fixed)", 1024); -#endif -} diff --git a/performance/performance_test/test13.cpp b/performance/performance_test/test13.cpp deleted file mode 100644 index a4481c8d..00000000 --- a/performance/performance_test/test13.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_INT) -#include -#endif - -void test13() -{ -#ifdef TEST_CPP_INT - test("cpp_int", 128); -#endif -} diff --git a/performance/performance_test/test14.cpp b/performance/performance_test/test14.cpp deleted file mode 100644 index 2ee7fb4a..00000000 --- a/performance/performance_test/test14.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_INT) -#include -#endif - -void test14() -{ -#ifdef TEST_CPP_INT - test("cpp_int", 256); -#endif -} diff --git a/performance/performance_test/test15.cpp b/performance/performance_test/test15.cpp deleted file mode 100644 index d07efb33..00000000 --- a/performance/performance_test/test15.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_INT) -#include -#endif - -void test15() -{ -#ifdef TEST_CPP_INT - test("cpp_int", 512); -#endif -} diff --git a/performance/performance_test/test16.cpp b/performance/performance_test/test16.cpp deleted file mode 100644 index f8240702..00000000 --- a/performance/performance_test/test16.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_INT) -#include -#endif - -void test16() -{ -#ifdef TEST_CPP_INT - test("cpp_int", 1024); -#endif -} diff --git a/performance/performance_test/test17.cpp b/performance/performance_test/test17.cpp deleted file mode 100644 index 3381eee5..00000000 --- a/performance/performance_test/test17.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_INT_RATIONAL) -#include -#endif - -void test17() -{ -#ifdef TEST_CPP_INT_RATIONAL - test("cpp_rational", 128); -#endif -} diff --git a/performance/performance_test/test18.cpp b/performance/performance_test/test18.cpp deleted file mode 100644 index 1e0b7209..00000000 --- a/performance/performance_test/test18.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_INT_RATIONAL) -#include -#endif - -void test18() -{ -#ifdef TEST_CPP_INT_RATIONAL - test("cpp_rational", 256); -#endif -} diff --git a/performance/performance_test/test19.cpp b/performance/performance_test/test19.cpp deleted file mode 100644 index 759480dd..00000000 --- a/performance/performance_test/test19.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_INT_RATIONAL) -#include -#endif - -void test19() -{ -#ifdef TEST_CPP_INT_RATIONAL - test("cpp_rational", 512); -#endif -} diff --git a/performance/performance_test/test20.cpp b/performance/performance_test/test20.cpp deleted file mode 100644 index f3d8f355..00000000 --- a/performance/performance_test/test20.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_INT_RATIONAL) -#include -#endif - -void test20() -{ -#ifdef TEST_CPP_INT_RATIONAL - test("cpp_rational", 1024); -#endif -} diff --git a/performance/performance_test/test21.cpp b/performance/performance_test/test21.cpp deleted file mode 100644 index 4ff9e517..00000000 --- a/performance/performance_test/test21.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPQ) -#include -#endif - -void test21() -{ -#ifdef TEST_MPQ - test("mpq_rational", 128); -#endif -} diff --git a/performance/performance_test/test22.cpp b/performance/performance_test/test22.cpp deleted file mode 100644 index eca0fa2b..00000000 --- a/performance/performance_test/test22.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPQ) -#include -#endif - -void test22() -{ -#ifdef TEST_MPQ - test("mpq_rational", 256); -#endif -} diff --git a/performance/performance_test/test23.cpp b/performance/performance_test/test23.cpp deleted file mode 100644 index a3571aaa..00000000 --- a/performance/performance_test/test23.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPQ) -#include -#endif - -void test23() -{ -#ifdef TEST_MPQ - test("mpq_rational", 512); -#endif -} diff --git a/performance/performance_test/test24.cpp b/performance/performance_test/test24.cpp deleted file mode 100644 index c20d0a26..00000000 --- a/performance/performance_test/test24.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPQ) -#include -#endif - -void test24() -{ -#ifdef TEST_MPQ - test("mpq_rational", 1024); -#endif -} diff --git a/performance/performance_test/test25.cpp b/performance/performance_test/test25.cpp deleted file mode 100644 index 5b273073..00000000 --- a/performance/performance_test/test25.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_TOMMATH) -#include -#endif - -void test25() -{ -#ifdef TEST_TOMMATH - test("tommath_int", 128); -#endif -} diff --git a/performance/performance_test/test26.cpp b/performance/performance_test/test26.cpp deleted file mode 100644 index 76df7a45..00000000 --- a/performance/performance_test/test26.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_TOMMATH) -#include -#endif - -void test26() -{ -#ifdef TEST_TOMMATH - test("tommath_int", 256); -#endif -} diff --git a/performance/performance_test/test27.cpp b/performance/performance_test/test27.cpp deleted file mode 100644 index 270eb6ba..00000000 --- a/performance/performance_test/test27.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_TOMMATH) -#include -#endif - -void test27() -{ -#ifdef TEST_TOMMATH - test("tommath_int", 512); -#endif -} diff --git a/performance/performance_test/test28.cpp b/performance/performance_test/test28.cpp deleted file mode 100644 index 0cd799b0..00000000 --- a/performance/performance_test/test28.cpp +++ /dev/null @@ -1,25 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_TOMMATH) -#include -#endif - -void test28() -{ -#ifdef TEST_TOMMATH - test("tommath_int", 1024); - /* - // - // These are actually too slow to test!!! - // - test("tom_rational", 128); - test("tom_rational", 256); - test("tom_rational", 512); - test("tom_rational", 1024); - */ -#endif -} diff --git a/performance/performance_test/test29.cpp b/performance/performance_test/test29.cpp deleted file mode 100644 index 81df5daf..00000000 --- a/performance/performance_test/test29.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_DEC_FLOAT) -#include -#endif - -void test29() -{ -#ifdef TEST_CPP_DEC_FLOAT - test("cpp_dec_float", 50); -#endif -} diff --git a/performance/performance_test/test30.cpp b/performance/performance_test/test30.cpp deleted file mode 100644 index eacf9639..00000000 --- a/performance/performance_test/test30.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_DEC_FLOAT) -#include -#endif - -void test30() -{ -#ifdef TEST_CPP_DEC_FLOAT - test("cpp_dec_float", 100); -#endif -} diff --git a/performance/performance_test/test31.cpp b/performance/performance_test/test31.cpp deleted file mode 100644 index 07aae33f..00000000 --- a/performance/performance_test/test31.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_DEC_FLOAT) -#include -#endif - -void test31() -{ -#ifdef TEST_CPP_DEC_FLOAT - test > >("cpp_dec_float", 500); -#endif -} diff --git a/performance/performance_test/test32.cpp b/performance/performance_test/test32.cpp deleted file mode 100644 index 2f115b3f..00000000 --- a/performance/performance_test/test32.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_BIN_FLOAT) -#include -#endif - -void test32() -{ -#ifdef TEST_CPP_BIN_FLOAT - test("cpp_bin_float", 50); -#endif -} diff --git a/performance/performance_test/test33.cpp b/performance/performance_test/test33.cpp deleted file mode 100644 index 4d9622ff..00000000 --- a/performance/performance_test/test33.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_BIN_FLOAT) -#include -#endif - -void test33() -{ -#ifdef TEST_CPP_BIN_FLOAT - test("cpp_bin_float", 100); -#endif -} diff --git a/performance/performance_test/test34.cpp b/performance/performance_test/test34.cpp deleted file mode 100644 index 4f3429f5..00000000 --- a/performance/performance_test/test34.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_CPP_BIN_FLOAT) -#include -#endif - -void test34() -{ -#ifdef TEST_CPP_BIN_FLOAT - test > >("cpp_bin_float", 500); -#endif -} diff --git a/performance/performance_test/test35.cpp b/performance/performance_test/test35.cpp deleted file mode 100644 index dc36224a..00000000 --- a/performance/performance_test/test35.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPFR) -#include -#endif - -void test35() -{ -#ifdef TEST_MPFR - test("mpfr_float", 50); -#endif -} diff --git a/performance/performance_test/test36.cpp b/performance/performance_test/test36.cpp deleted file mode 100644 index 3b53d290..00000000 --- a/performance/performance_test/test36.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPFR) -#include -#endif - -void test36() -{ -#ifdef TEST_MPFR - test("mpfr_float", 50); -#endif -} diff --git a/performance/performance_test/test37.cpp b/performance/performance_test/test37.cpp deleted file mode 100644 index 79e95943..00000000 --- a/performance/performance_test/test37.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPFR) -#include -#endif - -void test37() -{ -#ifdef TEST_MPFR - test("mpfr_float", 100); -#endif -} diff --git a/performance/performance_test/test38.cpp b/performance/performance_test/test38.cpp deleted file mode 100644 index e1d46f61..00000000 --- a/performance/performance_test/test38.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/////////////////////////////////////////////////////////////// -// Copyright 2019 John Maddock. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt - -#include "../performance_test.hpp" -#if defined(TEST_MPFR) -#include -#endif - -void test38() -{ -#ifdef TEST_MPFR - test("mpfr_float", 500); -#endif -}