I ran the tasks on a lenovo ideapad y700, and got these results
Copy File | Total Time |
---|---|
byte-by-byte | 8.106853 sec |
byte array of size 1KB | 0.072109 sec |
byte array of size 4KB | 0.065675 sec |
byte array of size 64KB | 0.061034 sec |
BufferedReader and PrintWriter | 0.120411 sec |