Hi, In a previous message Berin talk about the xmlbench and how the c++ library was so slow. Well I was keeping an eye over it to see if some new test results was released(the last ones are from the beginnings of 2004), but for a long time nothing happens. So I download the tests, patch it a little, so it compiles in cygwin, and the java security test don't use xpath as the plain c(not c++) don't use. and then pass the tests.... And the results are quite promising(xml-sec version is CVS HEAD at Jul 25th of 2005)
| xml-sec JUICE | xml-sec NOT JUICE | libxml1 xmlgen 4k | 4.51688 | 7.8826 | 1.985 xmlgen 256k| 41.03333 | 71.1916 | 102.175 opcgen 3.5k| 25929.0 | 41652.0 | 8747.773 opcgen 3M | NA | NA |61723.13 dmoz 12MB | 1239.5833 | 1675.0 | 1755.500 Signing/Verifying Time in ms The data are quite good. In small messages we are more less 3 time slower than libxml1. (if we increase the repetitions[from 4500 to 50000] the times gets better as JITS kicks in, but still not enough to catch wit libxml [about 3.11582ms from 4.51688ms in xmlgen 4k] ). But in medium we are quite right, better than libxml1. The only problem is that we have some problem in opcgen 3M, I will investigate it further and see if I can make this test pass. Any way I'm quite happy with the results, I don't expect the numbers to be so good. Taking on account that libxml seems so much faster in the the xmlbench than xerces(two times), and the JIT wasn't helping, it was shocking to see the numbers. And also it looks it's time to put more effort into JUICE project. Regards, Raul --------------------------------- Data about environment ---------------------- $ java -version java version "1.5.0_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_01-b08, mixed mode) $ echo $CLASSPATH /home/raul/workspace/xmlbench/lib/commons-logging.jar:/home/raul/workspace/xmlbench/lib/xalan.jar:/home/raul/workspace/xmlbench/lib/xmlsec-1.2.99.jar:/home/raul/workspace/xmlbench/lib/xercesImpl.jar:/home/raul/workspace/xmlbench/lib/juice.jar:. executed with : java -server -Xmx512m sun_dom2 $1 $2 $3 for libxml1 # emerge -s xmlsec Searching... [ Results for search key : xmlsec ] [ Applications found : 1 ] * dev-libs/xmlsec Latest version available: 1.2.8 Latest version installed: 1.2.8 Size of downloaded files: 4,737 kB Homepage: http://www.aleksey.com/xmlsec Description: command line tool for signing, verifying, encrypting and decrypting XML License: MIT # gcc -v Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/specs Configured with: /var/tmp/portage/gcc-3.4.4/work/gcc-3.4.4/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include/g++-v3 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.4.4 (Gentoo 3.4.4, ssp-3.4.4-1.0, pie-8.7.8) CFLAGS="-mtune=k8 -O2 -pipe -fomit-frame-pointer -ffast-math" # cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 31 model name : AMD Athlon(tm) 64 Processor 3000+ stepping : 0 cpu MHz : 1809.307 cache size : 512 KB fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow lahf_lm bogomips : 3588.09 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp -- http://r-bg.com