Benchmark to measure thread performances.
More...
#include <boost/thread.hpp>
#include <boost/bind.hpp>
#include <boost/lexical_cast.hpp>
#include "utils/measure-time.h"
#include "utils/big-lock.h"
#include "thread-pool.h"
#include "task-manager.h"
#include <systemc>
Go to the source code of this file.
Defines |
#define | BOOST_ENABLE_ASSERT_HANDLER 1 |
Functions |
void | f (void) |
void | eat_cpu (void) |
void | boost::assertion_failed (char const *expr, char const *function, char const *file, long line) |
void | send_requests (int n) |
void | bench_pool_f (int nb_producers, boost::function< void()> fn) |
void | bench_pool (int nb_producers) |
void | bench_thread (int nb_threads) |
void | bench_pool_size (int size) |
void | bench_pool_eat (int nb_producers) |
int | sc_main (int argc, char **argv) |
Variables |
const int | N = 100000 |
Detailed Description
Benchmark to measure thread performances.
Definition in file bench-threads.cpp.