Lines Matching refs:duration
172 static void perftestrun(int nthreads, int duration, int nreaders, int nupdaters) in perftestrun() argument
178 g_usleep(duration * G_USEC_PER_SEC); in perftestrun()
182 n_reads, n_updates, nreaders, nupdaters, duration); in perftestrun()
184 ((duration * 1000*1000*1000.*(double)nreaders) / in perftestrun()
186 ((duration * 1000*1000*1000.*(double)nupdaters) / in perftestrun()
191 static void perftest(int nreaders, int duration) in perftest() argument
200 perftestrun(i + 1, duration, nreaders, 1); in perftest()
203 static void rperftest(int nreaders, int duration) in rperftest() argument
211 perftestrun(i, duration, nreaders, 0); in rperftest()
214 static void uperftest(int nupdaters, int duration) in uperftest() argument
222 perftestrun(i, duration, 0, nupdaters); in uperftest()
362 static void stresstest(int nreaders, int duration) in stresstest() argument
377 g_usleep(duration * G_USEC_PER_SEC); in stresstest()
392 static void gtest_stress(int nreaders, int duration) in gtest_stress() argument
407 g_usleep(duration * G_USEC_PER_SEC); in gtest_stress()
450 int duration = 1; in main() local
469 duration = strtoul(argv[3], NULL, 0); in main()
472 stresstest(nreaders, duration); in main()
474 rperftest(nreaders, duration); in main()
476 uperftest(nreaders, duration); in main()
478 perftest(nreaders, duration); in main()