|
|
1.1 ! root 1: /* ! 2: * System call overhead benchmark. ! 3: */ ! 4: main(argc, argv) ! 5: char *argv[]; ! 6: { ! 7: register int ncalls; ! 8: ! 9: if (argc < 2) { ! 10: printf("usage: %s #syscalls\n", argv[0]); ! 11: exit(1); ! 12: } ! 13: ncalls = atoi(argv[1]); ! 14: while (ncalls-- > 0) ! 15: (void) getpid(); ! 16: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.