public static void CompareSizeOfLoadedInstance(string file = "test") { Helpers.Utils.Debug("Running Memory Size Comparing-Test.."); Stopwatch sw = new Stopwatch(); sw.Start(); Loader.ArffLoader al = new Loader.ArffLoader(file); al.loadArff(); ArffInstance ai = al.getInstance(); long t = sw.ElapsedMilliseconds; Helpers.Utils.Debug(string.Format("Read & Parsed ARFF file in {0} ms.", t)); SimpleArffInstance si = new SimpleArffInstance(ai); long t2 = sw.ElapsedMilliseconds; Helpers.Utils.Debug(string.Format("Converting complex instance in {0} ms.", (t2 - t))); Helpers.Utils.Debug(string.Format("Simple Instance Size: {0} Kb.", si.GetMemorySize())); Helpers.Utils.Debug(string.Format("Complex Instance Size: {0} Kb.", ai.GetMemorySize())); Helpers.Utils.Debug(string.Format("Finished, took {0} ms.", sw.ElapsedMilliseconds)); }