/mobile Handheld Friendly website
Ubuntu : Intel® Q6600® one core |
Each table row shows performance measurements for this C# Mono program with a particular command-line input value N.
| N | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| 1,000 | 0.52 | 0.53 | 13,868 | 484 | 2% 2% 0% 100% |
| 4,000 | 7.12 | 7.13 | 13,860 | 484 | 0% 1% 0% 100% |
| 16,000 | 57.44 | 57.45 | 13,868 | 484 | 1% 0% 0% 100% |
Read the ↓ make, command line, and program output logs to see how this program was run.
Read mandelbrot benchmark to see what this program should do.
Mono JIT compiler version 3.0.3 (tarball Tue Feb 12 10:56:44 PST 2013)
LLVM: yes(3.2svn-mono)
/* The Computer Language Benchmarks Game http://benchmarksgame.alioth.debian.org/ * * Adapted by Antti Lankila from the earlier Isaac Gouy's implementation */ using System; using System.IO; class Mandelbrot { public static void Main(String[] args) { int width = 100; if (args.Length > 0) width = Int32.Parse(args[0]); int height = width; int maxiter = 50; double limit = 4.0; Console.WriteLine("P4"); Console.WriteLine("{0} {1}", width,height); Stream s = Console.OpenStandardOutput(1024); for (int y = 0; y < height; y++) { int bits = 0; int xcounter = 0; double Ci = 2.0*y/height - 1.0; for (int x = 0; x < width; x++){ double Zr = 0.0; double Zi = 0.0; double Cr = 2.0*x/width - 1.5; int i = maxiter; bits = bits << 1; do { double Tr = Zr*Zr - Zi*Zi + Cr; Zi = 2.0*Zr*Zi + Ci; Zr = Tr; if (Zr*Zr + Zi*Zi > limit) { bits |= 1; break; } } while (--i > 0); if (++xcounter == 8) { s.WriteByte((byte) (bits ^ 0xff)); bits = 0; xcounter = 0; } } if (xcounter != 0) s.WriteByte((byte) ((bits << (8 - xcounter)) ^ 0xff)); } } }
Tue, 12 Feb 2013 20:43:12 GMT MAKE: mv mandelbrot.csharp-2.csharp mandelbrot.csharp-2.cs /usr/local/bin/mcs -optimize+ -platform:x86 -out:mandelbrot.csharp-2.csharp_run mandelbrot.csharp-2.cs rm mandelbrot.csharp-2.cs 0.23s to complete and log all make actions COMMAND LINE: /usr/local/bin/mono --llvm mandelbrot.csharp-2.csharp_run 16000 (BINARY) PROGRAM OUTPUT NOT SHOWN <premain>: CommandLine Error: Argument 'misched' defined more than once! <premain>: CommandLine Error: Argument 'print-machineinstrs' defined more than once! -simplifycfg: CommandLine Error: Argument 'misched' defined more than once! -simplifycfg: CommandLine Error: Argument 'print-machineinstrs' defined more than once!