mirror of
https://github.com/boostorg/coroutine2.git
synced 2025-05-09 23:24:01 +00:00
remove write overhead to std::out
This commit is contained in:
parent
5dbb10272b
commit
a4de31c41a
@ -85,12 +85,10 @@ int main( int argc, char * argv[])
|
||||
if ( bind) bind_to_processor( 0);
|
||||
|
||||
duration_type overhead_c = overhead_clock();
|
||||
std::cout << "overhead " << overhead_c.count() << " nano seconds" << std::endl;
|
||||
boost::uint64_t res = measure_time( overhead_c).count();
|
||||
std::cout << "average of " << res << " nano seconds" << std::endl;
|
||||
#ifdef BOOST_CONTEXT_CYCLE
|
||||
cycle_type overhead_y = overhead_cycle();
|
||||
std::cout << "overhead " << overhead_y << " cpu cycles" << std::endl;
|
||||
res = measure_cycles( overhead_y);
|
||||
std::cout << "average of " << res << " cpu cycles" << std::endl;
|
||||
#endif
|
||||
|
@ -85,12 +85,10 @@ int main( int argc, char * argv[])
|
||||
if ( bind) bind_to_processor( 0);
|
||||
|
||||
duration_type overhead_c = overhead_clock();
|
||||
std::cout << "overhead " << overhead_c.count() << " nano seconds" << std::endl;
|
||||
boost::uint64_t res = measure_time( overhead_c).count();
|
||||
std::cout << "average of " << res << " nano seconds" << std::endl;
|
||||
#ifdef BOOST_CONTEXT_CYCLE
|
||||
cycle_type overhead_y = overhead_cycle();
|
||||
std::cout << "overhead " << overhead_y << " cpu cycles" << std::endl;
|
||||
res = measure_cycles( overhead_y);
|
||||
std::cout << "average of " << res << " cpu cycles" << std::endl;
|
||||
#endif
|
||||
|
@ -168,7 +168,6 @@ int main( int argc, char * argv[])
|
||||
if ( bind) bind_to_processor( 0);
|
||||
|
||||
duration_type overhead_c = overhead_clock();
|
||||
std::cout << "overhead " << overhead_c.count() << " nano seconds" << std::endl;
|
||||
boost::uint64_t res = measure_time_void( overhead_c).count();
|
||||
std::cout << "void: average of " << res << " nano seconds" << std::endl;
|
||||
res = measure_time_int( overhead_c).count();
|
||||
@ -177,7 +176,6 @@ int main( int argc, char * argv[])
|
||||
std::cout << "X: average of " << res << " nano seconds" << std::endl;
|
||||
#ifdef BOOST_CONTEXT_CYCLE
|
||||
cycle_type overhead_y = overhead_cycle();
|
||||
std::cout << "overhead " << overhead_y << " cpu cycles" << std::endl;
|
||||
res = measure_cycles_void( overhead_y);
|
||||
std::cout << "void: average of " << res << " cpu cycles" << std::endl;
|
||||
res = measure_cycles_int( overhead_y);
|
||||
|
Loading…
x
Reference in New Issue
Block a user