5 main(int argc, char **argv)
15 fprint(2, "usage: %s /dev/sd??/data\n", argv[0]);
20 fd = open(argv[1], OREAD);
23 size = seek(fd, 0, 2) / 512;
26 pos = (vlong)(frand() * size);
27 if(pread(fd, buf, 512, 512 * pos) < 512)
31 print("%.3g\n", ((double)ns)/100000000);