We don't use it much. We started using it to generate IDs for flash 
scopes in 1.4.3, which is done no more than once per request. It's just 
something that came up recently, and there was some concern about 
performance.

-Ben

Dmitri Colebatch wrote:
> 2MB cache size (full cpuinfo at end of email).  I don't really
> understand why the numbers are as they are.... I've just run it again
> with fairly different results:
>
> JRockit:
> Testing with 1 threads for 5 seconds
> Generated 6,507,020 random ints using seed-many method
> Generated 71,425,284 random ints using seed-once method
> ====================
> Testing with 5 threads for 5 seconds
> Generated 16,455,525 random ints using seed-many method
> Generated 36,601,389 random ints using seed-once method
> ====================
> Testing with 10 threads for 5 seconds
> Generated 10,832,130 random ints using seed-many method
> Generated 33,238,768 random ints using seed-once method
> ====================
> Testing with 25 threads for 5 seconds
> Generated 12,250,530 random ints using seed-many method
> Generated 15,675,836 random ints using seed-once method
> ====================
> Testing with 50 threads for 5 seconds
> Generated 15,759,831 random ints using seed-many method
> Generated 15,496,179 random ints using seed-once method
> ====================
>
> Sun:
>
> Testing with 1 threads for 5 seconds
> Generated 5,983,931 random ints using seed-many method
> Generated 52,035,107 random ints using seed-once method
> ====================
> Testing with 5 threads for 5 seconds
> Generated 16,943,464 random ints using seed-many method
> Generated 10,462,359 random ints using seed-once method
> ====================
> Testing with 10 threads for 5 seconds
> Generated 17,020,737 random ints using seed-many method
> Generated 10,650,710 random ints using seed-once method
> ====================
> Testing with 25 threads for 5 seconds
> Generated 17,172,693 random ints using seed-many method
> Generated 10,710,387 random ints using seed-once method
> ====================
> Testing with 50 threads for 5 seconds
> Generated 17,081,978 random ints using seed-many method
> Generated 10,803,786 random ints using seed-once method
> ====================
>
> I'm not so convinced that there's not something else running on this
> box affecting this as we seem to get unexplainable numbers...
>
> cheesr,
> dim
>
> ps - I don't actually mind which way you go, do you guys use Random much?
>
> [EMAIL PROTECTED] dim]$ cat /proc/cpuinfo
> processor       : 0
> vendor_id       : GenuineIntel
> cpu family      : 15
> model           : 4
> model name      :                   Intel(R) Xeon(TM) CPU 3.60GHz
> stepping        : 3
> cpu MHz         : 3591.368
> cache size      : 2048 KB
> physical id     : 0
> siblings        : 2
> core id         : 0
> cpu cores       : 1
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 5
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall
> nx lm pni monitor ds_cpl est tm2 cid cx16 xtpr
> bogomips        : 7187.20
> clflush size    : 64
> cache_alignment : 128
> address sizes   : 36 bits physical, 48 bits virtual
> power management:
>
> processor       : 1
> vendor_id       : GenuineIntel
> cpu family      : 15
> model           : 4
> model name      :                   Intel(R) Xeon(TM) CPU 3.60GHz
> stepping        : 3
> cpu MHz         : 3591.368
> cache size      : 2048 KB
> physical id     : 3
> siblings        : 2
> core id         : 3
> cpu cores       : 1
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 5
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall
> nx lm pni monitor ds_cpl est tm2 cid cx16 xtpr
> bogomips        : 7182.51
> clflush size    : 64
> cache_alignment : 128
> address sizes   : 36 bits physical, 48 bits virtual
> power management:
>
> processor       : 2
> vendor_id       : GenuineIntel
> cpu family      : 15
> model           : 4
> model name      :                   Intel(R) Xeon(TM) CPU 3.60GHz
> stepping        : 3
> cpu MHz         : 3591.368
> cache size      : 2048 KB
> physical id     : 0
> siblings        : 2
> core id         : 0
> cpu cores       : 1
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 5
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall
> nx lm pni monitor ds_cpl est tm2 cid cx16 xtpr
> bogomips        : 7182.46
> clflush size    : 64
> cache_alignment : 128
> address sizes   : 36 bits physical, 48 bits virtual
> power management:
>
> processor       : 3
> vendor_id       : GenuineIntel
> cpu family      : 15
> model           : 4
> model name      :                   Intel(R) Xeon(TM) CPU 3.60GHz
> stepping        : 3
> cpu MHz         : 3591.368
> cache size      : 2048 KB
> physical id     : 3
> siblings        : 2
> core id         : 3
> cpu cores       : 1
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 5
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall
> nx lm pni monitor ds_cpl est tm2 cid cx16 xtpr
> bogomips        : 7182.54
> clflush size    : 64
> cache_alignment : 128
> address sizes   : 36 bits physical, 48 bits virtual
> power management:
>   

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to