static string Test(ISortter sort, IArrayBuilder array, int size) { int[] testArray = array.GetArray(size); DateTime start = DateTime.Now; UInt64 loops = sort.Sorting(testArray); TimeSpan duraction = DateTime.Now - start; double N = Math.Log(loops, size); return($"Size:{size,7:N0}| Loops:{loops,14:N0}| N:{N,6:f3}| Sort:{sort.GetType().Name,7}| RawArray:{array.GetType().Name,11}| Milliseconds:{duraction.TotalMilliseconds,13:f6}| Ticks:{duraction.Ticks,11:N0}"); }
public SystemObjectBuilder() { _dictionaryBuilder = new DictionaryBuilder<Dictionary<string, object>, object>(); _arrayBuilder = new CollectionBuilder<List<object>, object>(); }