libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
string_conversions_performance.cpp File Reference
#include "stdafx.h"
#include <boost/test/included/unit_test.hpp>
#include <boost/mpl/list.hpp>
#include "core/ave_deviation_meter.hpp"
#include "core/stats_output.hpp"
#include "core/ttypes.hpp"
#include <boost/lexical_cast.hpp>
#include <charconv>
#include <chrono>
Include dependency graph for string_conversions_performance.cpp:

Go to the source code of this file.

Classes

struct  std_atol
 
struct  std_strtol
 
struct  std_from_chars
 
struct  std_to_chars
 
struct  test_from_string_baseline< V >
 
struct  test_folly_ascii_to_int
 
struct  boost_lexical_cast_from< V >
 
struct  folly_uint64ToBufferUnsafe
 

Macros

#define BOOST_TEST_MODULE   libjmmcg_tests
 

Typedefs

using timed_results_t = ave_deviation_meter< unsigned long long >
 
using from_conversion_algorithms = boost::mpl::list< test_folly_ascii_to_int, test_from_string_baseline< unsigned long long >, test_from_string_baseline< double >, std_atol, boost_lexical_cast_from< long >, boost_lexical_cast_from< double >, std_strtol, std_from_chars >
 
using to_conversion_algorithms = boost::mpl::list< folly_uint64ToBufferUnsafe, std_to_chars >
 

Functions

 BOOST_AUTO_TEST_CASE_TEMPLATE (from_string, algorithm, from_conversion_algorithms)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (to_string, algorithm, to_conversion_algorithms)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   libjmmcg_tests

Definition at line 21 of file string_conversions_performance.cpp.

Typedef Documentation

◆ from_conversion_algorithms

◆ timed_results_t

using timed_results_t = ave_deviation_meter<unsigned long long>

Definition at line 37 of file string_conversions_performance.cpp.

◆ to_conversion_algorithms

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/2]

BOOST_AUTO_TEST_CASE_TEMPLATE ( from_string  ,
algorithm  ,
from_conversion_algorithms   
)

\xrefitem test 18. \xrefitem test 168.

Definition at line 142 of file string_conversions_performance.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/2]

BOOST_AUTO_TEST_CASE_TEMPLATE ( to_string  ,
algorithm  ,
to_conversion_algorithms   
)

\xrefitem test 19. \xrefitem test 169.

Definition at line 181 of file string_conversions_performance.cpp.