Class DiskProfiler


  • public class DiskProfiler
    extends java.lang.Object
    Profiles the reading and writing speed to some directory.
    • Constructor Summary

      Constructors 
      Constructor Description
      DiskProfiler​(java.lang.String testFileURl)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      java.lang.String profile​(int sizeInMB)
      Writes and reads a file and measures the elapsed time.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DiskProfiler

        public DiskProfiler​(java.lang.String testFileURl)
    • Method Detail

      • profile

        public java.lang.String profile​(int sizeInMB)
        Writes and reads a file and measures the elapsed time.
        Parameters:
        sizeInMB - the number of MB to write/read
        Returns:
        a CSV line like MB,write nanos,read nanos
      • main

        public static void main​(java.lang.String[] args)