没脾气2x:
在 linux 上用 mono 试了下面一段程序:
[阅读: 621] 2007-04-04 08:26:21
[CODE=C#]
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleTester
{
class Program
{
static void Main( string[] args )
{
DateTime timeStart = DateTime.Now;
for ( int i = 1; i <= 1000000; i++ )
{
int m = i % 19;
m = System.Math.Abs( m - 9 );
StringBuilder sb = new StringBuilder();
for ( int j = 0; j <= m; j++ )
{
sb.Append( "*" );
}
System.Console.WriteLine( sb.ToString() );
}
DateTime timeEnd = DateTime.Now;
TimeSpan span = timeEnd.Subtract( timeStart );
System.Console.Error.WriteLine( span.TotalMilliseconds );
}
}
}
[/CODE]
(运行时输出重定向到了空设备)
服务器 Intel(R) Xeon(TM) CPU 3.00GHz
Linux 下 Mono 运行
3.242
我的 AMD 3000+
Windows 下 .NET Framework 运行
2.546
朋友的不知什么配置的笔记本的 Windows 下运行
1.8xx
Notemper2x 3.1 ( ̄ε( ̄#)
没脾气2x 之 个人综合篇:
http://notemper2x.cndev.org/
我的 panoramio 相册:
http://panoramio.com/user/zhaixudong
我的 flickr相册:
http://www.flickr.com/photos/notemper2x/


QQ号20250出售,售价400,000元整(5位、皇冠80级、VIP7)a