Add proper per-file copyright notices/licenses and top-level license.
[bluesky.git] / microbench / microbench.py
index 313828a..f8b89ea 100755 (executable)
@@ -74,6 +74,17 @@ class TestCommands:
 
         return [time.time() - start]
 
+    def large_read(self):
+        buf = None
+
+        start = time.time()
+        fp = open("largefile")
+        while buf != "":
+            buf = fp.read(1048576)
+        fp.close()
+
+        return [time.time() - start]
+
     def shell(self):
         subprocess.call(['/bin/sh'])