Hello,<br><br>A quick test on my Xeon 3.6GHz reveals the following for me for generating a million GUIDs:<br><br>.Net: 300 ms<br>mono: 2300 ms<br>mono (modified): 1875 ms<br><br>So, not quite sure why you see 8 seconds on your server. For the modified version, I simply made the byte array inside of NewGuid static (since we are already locking for the RNG) for some performance improvement. Can someone comment if that change is acceptable?
<br><br>Thanks,<br>Jonathan<br><br><div><span class="gmail_quote">On 7/27/07, <b class="gmail_sendername">pablosantosluac</b> <<a href="mailto:firstname.lastname@example.org">email@example.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I need to generate a large number of GUIDs. I tried with my laptop and a<br>.net console application and it can generate about 1million GUIDs in about<br>480ms.<br><br>Then I tried the same with mono and it needed
3.4 seconds.<br><br>My surprise was trying on our Server (Intel(R) Xeon(TM) CPU 3.00GHz) where I<br>got the following results:<br><br>8 seconds to generate a million of GUIDs.<br><br>Surprinsingly my old Sun Blade 1000 took almost the same time (Solaris 10
<br>SPARC): 9 seconds.<br><br>I guess there is a reason why .NET implements faster GUID generation but, is<br>there any other globally unique number generator for Mono/Linux which I can<br>use? Also, any idea why the Xeon (which is much, much faster than both the
<br>laptop and the Solaris box) is so slooow generating GUIDs?<br><br>Thanks,<br><br>pablo<br><br>_______________________________________________<br>Mono-devel-list mailing list<br><a href="mailto:Monofirstname.lastname@example.org">