require & globs are 2x slower on ruby than on YARV
--------------------------------------------------
Key: JRUBY-5880
URL: http://jira.codehaus.org/browse/JRUBY-5880
Project: JRuby
Issue Type: Bug
Components: Performance
Affects Versions: JRuby 1.6.2
Environment: arturas@arturaz-fujitsu:~/work/spacegame/jrubytest$ uname
-a
Linux arturaz-fujitsu 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC
2011 i686 i686 i386 GNU/Linux
arturas@arturaz-fujitsu:~/work/spacegame/jrubytest$ java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.1) (6b22-1.10.1-0ubuntu1)
OpenJDK Server VM (build 20.0-b11, mixed mode)
arturas@arturaz-fujitsu:~/work/spacegame/jrubytest$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU T5200 @ 1.60GHz
stepping : 6
cpu MHz : 800.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat
pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc
arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16
xtpr pdcm lahf_lm dts
bogomips : 3199.83
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU T5200 @ 1.60GHz
stepping : 6
cpu MHz : 800.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat
pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc
arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16
xtpr pdcm lahf_lm dts
bogomips : 3200.15
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
arturas@arturaz-fujitsu:~/work/spacegame/jrubytest$ free -m
total used free shared buffers cached
Mem: 2002 1798 204 0 154 482
-/+ buffers/cache: 1161 841
Swap: 972 0 972
Reporter: Arturas Slajus
Attachments: jrubytest.tar.bz2, test data
JRuby takes from 2x (prewarmed, ng, 1.8 mode) to 4x (unwarmed) for startup.
Unfortunately this makes BDD very painful.
I've attached a test application extracted from our real code.
Usage notes:
1. rvm use jruby@test --create
2. rake gems:install
3. jruby test.rb
My test data is attached as a file.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email