Permalink
Browse files

Added README.

  • Loading branch information...
1 parent 8b54cbc commit 966650286973a8cc02a1bc29770fe358a48e109a @fidlej committed Feb 16, 2011
Showing with 26 additions and 1 deletion.
  1. +25 −0 README
  2. +1 −1 seeker.py
View
25 README
@@ -0,0 +1,25 @@
+seeker
+======
+A portable disk seek benchmark.
+
+Usage:
+sudo ./seeker.py /dev/sda
+
+
+Example Results
+===============
+SSD results:
+ Benchmarking /dev/sda [152627 MB]
+ 10000/2.42 = 4124 seeks/second
+ 0.24 ms random access time
+
+HDD results:
+ Benchmarking /dev/da0 [70007 MB]
+ 10000/60.26 = 165 seeks/second
+ 6.03 ms random access time
+
+
+Credits
+=======
+License: MIT
+Author: Ivo Danihelka <ivo@danihelka.net>
View
@@ -67,7 +67,7 @@ def main():
end = time.time()
duration = end - start
- print "%s/%s = %s seeks/second" % (
+ print "%s/%.2f = %s seeks/second" % (
num_seeks, duration, int(num_seeks/float(duration)))
print "%.2f ms random access time" % (1000 * duration/float(num_seeks))

0 comments on commit 9666502

Please sign in to comment.