Page Speed Optimization Libraries
1.13.35.1
|
#include "cache_spammer.h"
Public Member Functions | |
void | GetDone (bool found, StringPiece key) |
Called when a Get completes. | |
Public Member Functions inherited from net_instaweb::ThreadSystem::Thread | |
Thread (ThreadSystem *runtime, StringPiece name, ThreadFlags flags) | |
virtual | ~Thread () |
bool | Start () |
bool | Started () const |
void | Join () |
GoogleString | name () const |
Static Public Member Functions | |
static void | RunTests (int num_threads, int num_iters, int num_inserts, bool expecting_evictions, bool do_deletes, const char *value_prefix, CacheInterface *cache, ThreadSystem *thread_runtime) |
Protected Member Functions | |
virtual void | Run () |
Helper class for blasting a cache with concurrent requests. Refactored from threadsafe_cache_test.cc.
|
static |
value_prefix will be suffixed with an integer when stored. num_threads indicates how many threads will run in parallel. num_iters indicates how many times each thread will run a big loop. num_inserts sets the number of keys inserted and looked up in the loop.
num_iters will be divided down by 100 when running on valgrind.