Beispiel #1
0
// Main Entry Point
void RunBenchmark() {

  // Create and load the user table
  CreateYCSBDatabase();

  LoadYCSBDatabase();

  // Run the workload
  RunWorkload();

  WriteOutput();
}
Beispiel #2
0
// Main Entry Point
void RunBenchmark() {
  // Create the database
  CreateTPCCDatabase();

  // Load the database
  LoadTPCCDatabase();

  // Run the workload
  RunWorkload();

  // Emit throughput
  WriteOutput(state.throughput);
}
Beispiel #3
0
void run_client(const char* conf_str, const Config* cfg, bool init_db){
  ClientPtr clp;
  int ret;
  // SYSTEM-SPECIFIC
  if ((ret = CreateYesqlClient(conf_str, &clp, init_db)) != 0){
    LOG("issue creating client! %d\n", ret);
  } else {
    Workload workload = getWorkloadFromString(cfg->get<std::string>("workload", ""));
    RunWorkload(clp, workload, cfg);
  }
  delete clp;
  return;
}
void run_client(const char* conf_str, const Config* cfg, bool create_db){
  ClientPtr clp = nullptr;
  
  // SYSTEM-SPECIFIC
  std::string configdir = cfg->get<std::string>("configdir", ".");
  LOG("Creating client!\n");
  FlushLog();
  if (CreateWikiYesqlClient(conf_str, configdir.c_str(), &clp, create_db) == 0){
    LOG("Created client; running program!\n");
    FlushLog();
    Workload workload = getWorkloadFromString(cfg->get<std::string>("workload", ""));
    RunWorkload(clp, workload, cfg);
  }
  delete clp;
  return;
}
Beispiel #5
0
// Main Entry Point
void RunBenchmark() {

  if (state.gc_mode == true) {
    gc::GCManagerFactory::Configure(state.gc_backend_count);
  }
  
  gc::GCManagerFactory::GetInstance().StartGC();
  
  // Create the database
  CreateTPCCDatabase();

  // Load the database
  LoadTPCCDatabase();

  // Run the workload
  RunWorkload();
  
  gc::GCManagerFactory::GetInstance().StopGC();

  // Emit throughput
  WriteOutput();
}