[Mono-dev] GUID generation

pablosantosluac pablosantosluac at terra.es
Fri Jul 27 12:18:36 EDT 2007


Hi,

I need to generate a large number of GUIDs. I tried with my laptop and a 
.net console application and it can generate about 1million GUIDs in about 
480ms.

Then I tried the same with mono and it needed 3.4 seconds.

My surprise was trying on our Server (Intel(R) Xeon(TM) CPU 3.00GHz) where I 
got the following results:

8 seconds to generate a million of GUIDs.

Surprinsingly my old Sun Blade 1000 took almost the same time (Solaris 10 
SPARC): 9 seconds.

I guess there is a reason why .NET implements faster GUID generation but, is 
there any other globally unique number generator for Mono/Linux which I can 
use? Also, any idea why the Xeon (which is much, much faster than both the 
laptop and the Solaris box) is so slooow generating GUIDs?

Thanks,

pablo 




More information about the Mono-devel-list mailing list