Class PerformanceExperiment


  • public class PerformanceExperiment
    extends java.lang.Object
    • Field Detail

      • path

        protected static java.lang.String path
      • engine

        protected static java.lang.String engine
      • resultsFile

        protected static java.io.File resultsFile
      • root

        protected static final java.nio.file.Path root
      • duration

        protected java.lang.Long duration
      • comms

        protected java.lang.Long comms
      • maxModels

        protected static int maxModels
        SETUP
      • totalQueries

        protected static int totalQueries
      • maxIterations

        protected static int maxIterations
      • warmupIterations

        protected static int warmupIterations
      • queryId

        public java.lang.Integer queryId
      • modelId

        public java.lang.Integer modelId
      • optimisation

        public boolean optimisation
      • iteration

        public java.lang.Integer iteration
      • name

        public org.junit.rules.TestName name
    • Constructor Detail

      • PerformanceExperiment

        public PerformanceExperiment()
    • Method Detail

      • setup

        public static void setup()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • prepareResultFile

        protected static void prepareResultFile​(java.io.File file,
                                                java.lang.String... headers)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • parameters

        public static java.lang.Iterable<java.lang.Object[]> parameters()
      • getHeaders

        protected static java.lang.String[] getHeaders()
      • prepareForExecution

        public void prepareForExecution()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deleteNonExisting

        public void deleteNonExisting()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • execution

        public void execution()
      • loadModel

        protected void loadModel()
                          throws java.lang.Exception
        Helpers
        Throws:
        java.lang.Exception
      • parseAndPopulateScript

        protected void parseAndPopulateScript()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • dispose

        protected void dispose()
      • getModel

        protected java.io.File getModel​(java.lang.Integer id)
      • getScript

        protected java.lang.String getScript​(java.lang.Integer id)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • writeResults

        protected void writeResults​(java.io.File file,
                                    java.lang.Object... record)
                             throws java.io.IOException
        Throws:
        java.io.IOException