Benchmark between two disks (Ext4 -> Ext4)
Here are the results of the same tests but using two hard disk with the same formatting (Ext4).
We see exactly the same results as in the first benchmark. The naive streams iscompletely useless for little files. So let’s remove itand see what happens for interesting methods :
Here again, the conclusion are the same and the times are not enough big to make global conclusions.
Here, we have the limits of the buffered strategy and see a real advantage of custom buffer strategy. We also see that the NIO Transfer and Path methods are taking a little advantage. But again, the times are really short.
We can see the reintroduction of the native method on the interesting methods.
So we covered the text files. If we compare the times between the first benchmark (the same disk) and this method (between two disk), we can see that the times are almost the same, just a little slower for some methods. So let’s watch the big binary files :
Again, the results are close to using the same disk. So let’s see with the last file :
This time, the differences are impressive. The native and NIO Buffer methods are the fastest methods. The NIO Transfer is a little slower but the Path method is a lot slower here.
This transfer is a lot faster than on the same disk. I’m not sure of the cause of these results. The only reason I can found is that the operating system can made the two things at the same time, reading on the first disk and writing on the second disk. If someone has a better conclusion, don’t hesitate to comment the post.
The detailed informations (standard deviation, confidence intervals and other stats stuff) are available in the conclusion page.