Created
March 14, 2013 06:20
-
-
Save rxin/5159238 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def testWrite(path: String): Long = { | |
val startTime = System.currentTimeMillis() | |
val out = new java.io.FileWriter(path) | |
var i = 1 | |
val bytes = " " * (1024 * 1024) | |
while (i < 1000) { | |
out.write(bytes) | |
i += 1 | |
} | |
out.close | |
System.currentTimeMillis() - startTime | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment