MCPcopy Create free account
hub / github.com/F-Stack/f-stack / startBenchmarkThreads

Function startBenchmarkThreads

app/redis-6.2.6/src/redis-benchmark.c:972–983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

970}
971
972static void startBenchmarkThreads() {
973 int i;
974 for (i = 0; i < config.num_threads; i++) {
975 benchmarkThread *t = config.threads[i];
976 if (pthread_create(&(t->thread), NULL, execBenchmarkThread, t)){
977 fprintf(stderr, "FATAL: Failed to start thread %d.\n", i);
978 exit(1);
979 }
980 }
981 for (i = 0; i < config.num_threads; i++)
982 pthread_join(config.threads[i]->thread, NULL);
983}
984
985static void benchmark(char *title, char *cmd, int len) {
986 client c;

Callers 2

benchmarkFunction · 0.85
mainFunction · 0.85

Calls 1

pthread_createFunction · 0.50

Tested by

no test coverage detected