fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char filename[10];
  5. int iodepth, bs, size, numjobs, runtime;
  6.  
  7. printf("Where is your file? (absult postion)\n");
  8. scanf("%s", filename);
  9.  
  10. printf("Setting your IO module(default=1)\n");
  11. scanf("%d", &iodepth);
  12.  
  13. printf("What is your I/O size(-bs)?\n");
  14. scanf("%d", &bs);
  15.  
  16. printf("How much the test file size\n");
  17. scanf("%d", &size);
  18.  
  19. printf("How many your number of jobs?\n");
  20. scanf("%d", &numjobs);
  21.  
  22. printf("How long do you wany to test?(sec)\n");
  23. scanf("%d", &runtime);
  24.  
  25. char mode;
  26. printf("Choice your mode: A.Read B.Write C.Randread D.Randwrite E.Randrw F.RWmixread=70 \n");
  27. scanf(" %c\n", &mode);
  28. printf("%c;\n", mode);
  29. return 0;
  30. }
  31.  
Success #stdin #stdout 0s 9432KB
stdin
hello
1
2
3
4
5
A
stdout
Where is your file? (absult postion)
Setting your IO module(default=1)
What is your I/O size(-bs)?
How much the test file size
How many your number of jobs?
How long do you wany to test?(sec)
Choice your mode: A.Read B.Write C.Randread D.Randwrite E.Randrw F.RWmixread=70 
A;