KFORTH, PFE, GFORTH BENCHMARKS ON A LINUX/INTEL SYSTEM Here, pfe-0.33.48 is compiled with: ./configure --prefix=$HOME --with-cflags=-DUNROLL_NEXT --with-opt=3 This defaults to dynamic libraries, which is likely to be a bit slower. user total summary ------------------ kForth-fast 0.63 + 1.19 + 1.08 + 1.25 = 4.15 pfe 3.11 + 3.48 + 2.21 + 4.44 = 13.24 gforth-fast 0.320 + 0.410 + 0.270 + 0.450 = 1.45 pfe/kForth = 13.24 / 4.15 = 3.19 kForth/gforth = 4.15 / 1.45 = 2.86 pfe/gforth = 13.24 / 1.45 = 9.13 ---------------------- gravitar% date Wed Jun 21 16:49:42 EDT 2006 gravitar% cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Xeon(TM) CPU 3.06GHz stepping : 9 cpu MHz : 3048.980 cache size : 512 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 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 pbe cid bogomips : 6081.74 processor : 1 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Xeon(TM) CPU 3.06GHz stepping : 9 cpu MHz : 3048.980 cache size : 512 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 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 pbe cid bogomips : 6094.84 processor : 2 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Xeon(TM) CPU 3.06GHz stepping : 9 cpu MHz : 3048.980 cache size : 512 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 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 pbe cid bogomips : 6094.84 processor : 3 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Xeon(TM) CPU 3.06GHz stepping : 9 cpu MHz : 3048.980 cache size : 512 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 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 pbe cid bogomips : 6094.84 ---------------------- gravitar% kforth-fast kForth v 1.4.0-fast (Build: 2006-06-13) Copyright (c) 1998--2006 Krishna Myneni Contributions by: dpw gd mu bk abs tn cmb bg dnw Provided under the GNU General Public License. ok bye Goodbye. gravitar% dobench-fast Wed Jun 21 16:45:40 EDT 2006 USING KFORTH-FAST SIEVE Goodbye. real 0.62 user 0.63 sys 0.00 BUBBLE-SORT Goodbye. real 1.18 user 1.19 sys 0.00 MATRIX-MULT Goodbye. real 1.08 user 1.08 sys 0.00 FIB Goodbye. real 1.24 user 1.25 sys 0.00 -------------------------- gravitar% pfe \ Portable Forth Environment 0.33.48 (Jun 21 2006 13:23:56) Copyright (C) Dirk Uwe Zoller 1993 - 1995. Copyright (C) Tektronix, Inc. 1998 - 2003. ANS/ffa ITC Forth - Please enter LICENSE and WARRANTY. Running on i686 linux - to quit say BYE. ok bye Goodbye! gravitar% dopfebench USING PFE SIEVE real 3.11 user 3.12 sys 0.00 BUBBLE-SORT "random" is redefined real 3.49 user 3.48 sys 0.01 MATRIX-MULT "random" is redefined real 2.23 user 2.21 sys 0.02 FIB real 4.43 user 4.44 sys 0.01 0:13.29 elapsed, 13.270 u, 0.050 s, cpu 100.2%, 0 swaps, 0 rds, 0 wrts, pgs: 0 avg., 0 max. ------------- gravitar% gforth-fast Gforth 0.6.2, Copyright (C) 1995-2003 Free Software Foundation, Inc. Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license' Type `bye' to exit bye gravitar% make bench cd engine && make gforth gforth-ditc gforth-fast gforth-itc make[1]: Entering directory `/afs/umich.edu/user/w/i/williams/gforth-0.6.2/engine' make[1]: `gforth' is up to date. make[1]: `gforth-ditc' is up to date. make[1]: `gforth-fast' is up to date. make[1]: `gforth-itc' is up to date. make[1]: Leaving directory `/afs/umich.edu/user/w/i/williams/gforth-0.6.2/engine' cp -p engine/gforth-fast gforth-fast cp -p kernl32l.fi kernl32l.fi~ cp -p kernl32l.fi- kernl32l.fi cp -p gforth gforth~ cp -p engine/gforth gforth cp -p engine/gforth-ditc gforth-ditc Each benchmark takes about 30s on a 486-66 (gcc-2.6.3 -DFORCE_REG) time ./gforth-fast --die-on-signal -p ".:/afs/umich.edu/user/w/i/williams/lib/gforth/site-forth:/afs/ umich.edu/user/w/i/williams/share/gforth/site-forth:/afs/umich. edu/user/w/i/williams/lib/gforth/0.6.2:/afs/umich.edu/user/w/i/ williams/share/gforth/0.6.2:." siev.fs -e "main bye" real 0m0.319s user 0m0.320s sys 0m0.000s time ./gforth-fast --die-on-signal -p ".:/afs/umich.edu/user/w/i/williams/lib/gforth/site-forth:/afs/ umich.edu/user/w/i/williams/share/gforth/site-forth:/afs/umich. edu/user/w/i/williams/lib/gforth/0.6.2:/afs/umich.edu/user/w/i/ williams/share/gforth/0.6.2:." bubble.fs -e "main bye" redefined cell redefined list real 0m0.409s user 0m0.410s sys 0m0.000s time ./gforth-fast --die-on-signal -p ".:/afs/umich.edu/user/w/i/williams/lib/gforth/site-forth:/afs/ umich.edu/user/w/i/williams/share/gforth/site-forth:/afs/umich. edu/user/w/i/williams/lib/gforth/0.6.2:/afs/umich.edu/user/w/i/ williams/share/gforth/0.6.2:." matrix.fs -e "main bye" real 0m0.268s user 0m0.270s sys 0m0.000s time ./gforth-fast --die-on-signal -p ".:/afs/umich.edu/user/w/i/williams/lib/gforth/site-forth:/afs/ umich.edu/user/w/i/williams/share/gforth/site-forth:/afs/umich. edu/user/w/i/williams/lib/gforth/0.6.2:/afs/umich.edu/user/w/i/ williams/share/gforth/0.6.2:." fib.fs -e "main bye" real 0m0.447s user 0m0.450s sys 0m0.000s -------------------