n=100 sweeps=9 e[n-1]=50.0748577486987 Mono log profiler data Profiler version: 0.4 Data version: 4 Mean timer overhead: 661 nanoseconds Program startup: Thu Apr 20 21:35:47 2017 Program ID: 24531 Server listening on: 36297 JIT summary Compiled methods: 283 Generated code size: 68912 GC summary GC resizes: 0 Max heap size: 0 Object moves: 82 Gen1 collections: 2, max time: 974us, total time: 974us, average: 487us Allocation summary Bytes Count Average Type name 160848 3 53616 System.Double[] 8272 10 827 System.Byte[] 6968 13 536 System.Char[] 3408 92 37 System.String 592 4 148 System.Object[] 264 3 88 System.IO.FileStream 224 2 112 System.Globalization.CultureInfo 152 1 152 System.Globalization.NumberFormatInfo 112 2 56 System.IO.UnexceptionalStreamWriter 88 1 88 System.AppDomainSetup 80 2 40 System.String[] 80 1 80 System.Globalization.CultureNotFoundException 80 1 80 System.AppDomain 72 3 24 System.Int32[] 72 3 24 Microsoft.Win32.SafeHandles.SafeFileHandle 64 1 64 System.NullReferenceException 64 1 64 System.StackOverflowException 64 4 16 System.Int32 64 2 32 System.IO.SynchronizedWriter 64 1 64 System.Globalization.TextInfo 64 1 64 System.NumberFormatter 64 1 64 System.IO.UnexceptionalStreamReader 64 1 64 System.OutOfMemoryException 64 1 64 System.IO.StreamReader.NullStreamReader 56 1 56 System.Console.InternalCancelHandler 56 1 56 System.IO.StreamWriter 56 1 56 System.Text.UTF8Encoding 48 3 16 System.Text.DecoderReplacementFallback 48 2 24 matrix 48 1 48 System.Runtime.Remoting.Contexts.Context 48 2 24 System.Text.StringBuilder 40 5 8 System.Object 32 1 32 System.IntPtr[] 32 2 16 System.Text.EncoderReplacementFallback 24 1 24 System.Random 24 1 24 System.IO.TextWriter.NullTextWriter 24 1 24 System.IO.NullStream 24 1 24 System.Boolean[] 24 1 24 System.Text.UTF8Encoding.UTF8Decoder 16 1 16 System.Double 16 1 16 System.IO.SynchronizedReader 16 1 16 vector 16 1 16 System.IO.TextReader.NullTextReader 8 1 8 System.Text.DecoderExceptionFallback 8 1 8 System.Text.EncoderExceptionFallback 8 1 8 System.NullConsoleDriver Total memory allocated: 182560 bytes in 185 objects Method call summary Total(ms) Self(ms) Calls Method name 1907 0 1 (wrapper runtime-invoke) :runtime_invoke_void_object (object,intptr,intptr,intptr) 1907 18 1 test:Main (string[]) 1658 1421 1 jacobi:cyclic (matrix,vector,matrix) 107 0 22 (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr) 88 88 44550 (wrapper managed-to-native) System.Math:Atan2 (double,double) 75 75 44550 (wrapper managed-to-native) System.Math:Cos (double) 72 72 44550 (wrapper managed-to-native) System.Math:Sin (double) 71 12 5050 System.Random:NextDouble () 69 8 1 System.Console:.cctor () 59 33 5050 System.Random:Sample () 53 9 1 System.Console:SetupStreams (System.Text.Encoding,System.Text.Encoding) 40 0 1 System.Console:WriteLine (string,object) 39 0 1 System.IO.SynchronizedWriter:WriteLine (string,object) 39 0 1 System.IO.TextWriter:WriteLine (string,object) 36 5 2 string:Format (System.IFormatProvider,string,object[]) 35 0 1 System.IO.TextWriter:Write (string,object) 35 4 1 int:Parse (string) 30 4 1 int:Parse (string,bool,int&,System.Exception&) 30 4 2 string:FormatHelper (System.Text.StringBuilder,System.IFormatProvider,string,object[]) 26 1 4 System.Threading.Thread:get_CurrentCulture () 25 0 1 string:Format (string,object) 15 2 1 System.Console:OpenStandardOutput (int) 14 1 1 System.Globalization.CultureInfo:.cctor () 13 0 1 System.Console:WriteLine (string,object,object) 13 13 10100 System.Random:JKiss () 13 1 2 int:ToString (string,System.IFormatProvider) 13 0 3 System.Console:Open (intptr,System.IO.FileAccess,int) 13 0 1 System.IO.SynchronizedWriter:WriteLine (string,object,object) 12 1 1 System.Globalization.CultureInfo:.ctor (int,bool,bool) 12 0 1 System.IO.TextWriter:WriteLine (string,object,object) 12 0 1 System.IO.TextWriter:Write (string,object,object) 12 12 10100 (wrapper managed-to-native) object:__icall_wrapper___emul_iconv_to_r_un (int) 12 2 3 (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (intptr,System.IO.FileAccess,bool,int,bool,bool) 11 0 1 string:Format (string,object,object) 11 2 2 System.NumberFormatter:NumberToString (string,int,System.IFormatProvider) 11 0 1 (wrapper remoting-invoke-with-check) System.IO.UnexceptionalStreamReader:.ctor (System.IO.Stream,System.Text.Encoding) 11 0 1 System.IO.UnexceptionalStreamReader:.ctor (System.IO.Stream,System.Text.Encoding) 10 2 1 System.Globalization.CultureInfo:ConstructInvariant (bool) 10 1 1 double:ToString (string,System.IFormatProvider) 10 1 4 System.Globalization.CultureInfo:ConstructCurrentCulture () 10 2 3 System.IO.FileStream:.ctor (intptr,System.IO.FileAccess,bool,int,bool,bool) 9 0 2 System.IO.UnexceptionalStreamWriter:Write (string) 9 0 2 (wrapper remoting-invoke-with-check) System.IO.UnexceptionalStreamWriter:.ctor (System.IO.Stream,System.Text.Encoding) 9 3 1 System.NumberFormatter:NumberToString (string,double,System.IFormatProvider) 9 1 6 System.IO.StreamWriter:FlushCore () 9 1 2 System.IO.StreamWriter:Write (string) 9 0 2 System.IO.UnexceptionalStreamWriter:.ctor (System.IO.Stream,System.Text.Encoding) 8 2 1 System.Globalization.CultureInfo:CreateSpecificCulture (string) 8 0 1 System.IO.StreamReader:.ctor (System.IO.Stream,System.Text.Encoding) 8 0 1 System.IO.StreamReader:.ctor (System.IO.Stream,System.Text.Encoding,bool,int) 7 2 1 System.IO.StreamReader:.ctor (System.IO.Stream,System.Text.Encoding,bool,int,bool) 7 0 1 System.IO.StreamWriter:.cctor () 7 1 2 System.Text.Encoding:get_UTF8Unmarked () 7 0 3 System.IO.StreamWriter:.ctor (System.IO.Stream,System.Text.Encoding,int) 6 0 1 (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (System.IO.Stream,System.Text.Encoding,int) 6 2 3 System.IO.StreamWriter:.ctor (System.IO.Stream,System.Text.Encoding,int,bool) 6 2 3 System.IO.FileStream:ExposeHandle () 5 3 1 System.IO.StreamReader:Initialize (System.IO.Stream,System.Text.Encoding,bool,int) 5 0 1 System.Text.UTF8Encoding:.ctor (bool,bool) 4 0 2 System.NumberFormatter:IntegerToString (string,System.IFormatProvider) 4 0 6 System.IO.StreamWriter:Decode () 4 2 1 System.Text.Encoding:.ctor (int) 4 2 1 System.NumberFormatter:Init (string,double,int) 3 3 1 System.Globalization.NumberFormatInfo:.cctor () 3 2 2 System.NumberFormatter:FormatDecimal (int,System.Globalization.NumberFormatInfo) 3 1 4 System.Text.UTF8Encoding:GetBytes (char[],int,int,byte[],int) 3 0 2 System.IO.TextWriter:WriteLine () 3 1 4 System.IO.StreamWriter:FlushBytes () 3 1 2 System.NumberFormatter:Init (string,int,int) 3 0 2 System.IO.UnexceptionalStreamWriter:Write (char[]) 3 1 1 System.Globalization.CultureInfo:CreateNotFoundException (string) 2 1 2 System.IO.StreamWriter:Write (char[]) 2 2 11 System.IO.FileStream:FlushBuffer () 2 0 1 System.IO.TextWriter:.cctor () 2 1 1 System.ConsoleDriver:.cctor () 2 0 1 System.Globalization.NumberFormatInfo:get_InvariantInfo () 2 0 2 System.IO.StreamWriter:set_AutoFlush (bool) 2 2 4 System.Text.UTF8Encoding:InternalGetBytes (char[],int,int,byte[],int,System.Text.EncoderFallback,System.Text.EncoderFallbackBuffer&,char&,bool) 2 0 1 (wrapper remoting-invoke-with-check) System.IO.TextWriter/NullTextWriter:.ctor () 2 0 1 System.Globalization.CultureInfo:CreateTextInfo (bool) 2 2 1 System.Globalization.NumberFormatInfo:.ctor (bool) 2 0 6 System.IO.TextWriter:.ctor () 2 0 2 System.IO.UnexceptionalStreamWriter:Flush () 2 0 1 System.IO.TextWriter/NullTextWriter:.ctor () 2 1 4 System.IO.FileStream:Write (byte[],int,int) 2 1 1 System.NumberFormatter:NumberToString (string,System.Globalization.NumberFormatInfo) 1 1 1 string:ToLowerInvariant () 1 0 2 System.IO.StreamWriter:Flush () 1 0 1 System.IO.StreamReader:.cctor () 1 1 3 System.NumberFormatter:GetInstance () 1 0 1 (wrapper remoting-invoke-with-check) System.IO.StreamReader/NullStreamReader:.ctor () 1 1 2 System.IO.StreamWriter:LowLevelWrite (char[],int,int) 1 0 1 System.IO.StreamReader/NullStreamReader:.ctor () 1 1 2 System.ConsoleDriver:get_IsConsole () 1 1 3 System.Text.StringBuilder:Append (string,int,int) 1 1 3 System.IO.StreamWriter:Initialize (System.Text.Encoding,int) 1 0 1 string:Concat (string,string,string) 1 0 1 System.Text.UTF8Encoding:GetDecoder () 1 1 1 System.Globalization.TextInfo:.ctor (System.Globalization.CultureInfo,int,void*,bool) 1 0 1 System.IO.StreamReader:.ctor () 1 1 6 string:ToCharArray () 1 1 1 string:IndexOf (char) 1 0 3 Microsoft.Win32.SafeHandles.SafeFileHandle:.ctor (intptr,bool) Total calls: 164611 Metadata summary Loaded images: 4 Exception summary Throws: 1 Executed catch clauses: 1 Thread summary Thread: 0x758a4430, name: "" Thread: 0x60b07e40, name: "Finalizer" Thread: 0x76cf9000, name: "Main"