proxygen
|
#include <thread>
#include <folly/synchronization/ParkingLot.h>
#include <folly/Benchmark.h>
#include <folly/detail/Futex.h>
#include <folly/synchronization/Baton.h>
#include <folly/synchronization/test/Barrier.h>
Go to the source code of this file.
Functions | |
DEFINE_uint64 (threads, 32,"Number of threads for benchmark") | |
BENCHMARK (FutexNoWaitersWake, iters) | |
BENCHMARK_RELATIVE (ParkingLotNoWaitersWake, iters) | |
BENCHMARK (FutexWakeOne, iters) | |
BENCHMARK_RELATIVE (ParkingLotWakeOne, iters) | |
BENCHMARK (FutexWakeAll, iters) | |
BENCHMARK_RELATIVE (ParkingLotWakeAll, iters) | |
int | main (int argc, char **argv) |
Variables | |
ParkingLot | lot |
BENCHMARK | ( | FutexNoWaitersWake | , |
iters | |||
) |
Definition at line 32 of file ParkingLotBenchmark.cpp.
References b, folly::BenchmarkSuspender::dismiss(), folly::detail::futexWake(), i, folly::pushmi::detail::t, threads, and folly::test::Barrier::wait().
BENCHMARK | ( | FutexWakeOne | , |
iters | |||
) |
Definition at line 75 of file ParkingLotBenchmark.cpp.
References b, folly::BenchmarkSuspender::dismiss(), folly::detail::futexWait(), folly::detail::futexWake(), i, folly::pushmi::detail::t, threads, and folly::test::Barrier::wait().
BENCHMARK | ( | FutexWakeAll | , |
iters | |||
) |
Definition at line 140 of file ParkingLotBenchmark.cpp.
References b, folly::BenchmarkSuspender::dismiss(), folly::detail::futexWait(), folly::detail::futexWake(), i, folly::pushmi::detail::t, threads, and folly::test::Barrier::wait().
BENCHMARK_RELATIVE | ( | ParkingLotNoWaitersWake | , |
iters | |||
) |
Definition at line 54 of file ParkingLotBenchmark.cpp.
References b, folly::BenchmarkSuspender::dismiss(), i, folly::RetainContinue, folly::pushmi::detail::t, threads, folly::ParkingLot< Data >::unpark(), and folly::test::Barrier::wait().
BENCHMARK_RELATIVE | ( | ParkingLotWakeOne | , |
iters | |||
) |
Definition at line 105 of file ParkingLotBenchmark.cpp.
References b, folly::BenchmarkSuspender::dismiss(), f, i, folly::ParkingLot< Data >::park(), folly::RemoveBreak, folly::RemoveContinue, folly::pushmi::detail::t, threads, folly::ParkingLot< Data >::unpark(), and folly::test::Barrier::wait().
BENCHMARK_RELATIVE | ( | ParkingLotWakeAll | , |
iters | |||
) |
Definition at line 172 of file ParkingLotBenchmark.cpp.
References b, folly::BenchmarkSuspender::dismiss(), f, i, folly::ParkingLot< Data >::park(), folly::RemoveContinue, folly::pushmi::detail::t, threads, folly::ParkingLot< Data >::unpark(), and folly::test::Barrier::wait().
int main | ( | int | argc, |
char ** | argv | ||
) |
ParkingLot lot |
Definition at line 30 of file ParkingLotBenchmark.cpp.
Referenced by TEST().