Mail Archives: djgpp/1998/07/19/18:30:15
Well. I have extracted the code I used to test DJGPP 2.02 speed. I have
made a simple program without user interfaz. Here there are the
comparation results:
16 bit version (BC 3.0) 4' 18"
32 bit version (DJGPP v2.01) 6' 21"
32 bit version (DJGPP v2.02 alpha 280698) 1' 57"
As the last test, the 16 and 32 bit versions are identical, except the
32 bit version use a big hash table to remenber key position. The test
recalculate the cost of 2300 pieces of fourniture.
Also I have checked reliability. I have compared the program output and
the modified data bases for the three versions. I didn't found
differences.
I love 2.02 :-)
I have profiled the 2.01 version (16' 27" to do the test), linked whith
libc_gp.a. I attach the first lines of gprof output.
Each sample counts as 0.055556 seconds.
% cumulative self self total
time seconds seconds calls ms/call ms/call name
59.82 298.56 298.56 mcount
26.90 432.83 134.28 __dpmi_int
8.46 475.06 42.22 __dj_movedata
0.87 479.39 4.33 2688065 0.00 0.00 strtol
0.63 482.56 3.17 5284125 0.00 0.00 strcopnb
0.52 485.17 2.61 5284126 0.00 0.00 strncpy
0.48 487.56 2.39 5284125 0.00 0.00 strlen
0.21 488.61 1.06 1823037 0.00 0.00 strcpy
0.21 489.67 1.06 57883 0.02 0.04 copia_desp_a_mbl
0.19 490.61 0.94 2833062 0.00 0.00 strcmp
0.19 491.56 0.94 2300 0.41 9.90 calcula_coste_mb
0.16 492.33 0.78 239878 0.00 0.00 _read
0.16 493.11 0.78 18940 0.04 0.04 copia_cab_a_mbl
0.11 493.67 0.56 57883 0.01 0.12 buf_a_despmueble
0.10 494.17 0.50 496012 0.00 0.00 comprueba_mdlmdf
0.09 494.61 0.44 239877 0.00 0.01 _filbuf
0.09 495.06 0.44 37657 0.01 0.13 buf_a_pieza
0.08 495.44 0.39 240271 0.00 0.00 fseek
0.08 495.83 0.39 239877 0.00 0.01 fread
0.08 496.22 0.39 71510 0.01 0.01 hash
0.07 496.56 0.33 115003 0.00 0.02 clave_dbf
0.04 496.78 0.22 1522866 0.00 0.00 atoi
0.04 497.00 0.22 115003 0.00 0.01 lee_n_dbf
0.04 497.22 0.22 71024 0.00 0.01 busca
0.04 497.44 0.22 __movedata
0.03 497.61 0.17 247589 0.00 0.00 putc
0.03 497.78 0.17 239873 0.00 0.00 ftell
0.03 497.94 0.17 memcpy
0.03 498.11 0.17 number
0.02 498.22 0.11 480146 0.00 0.00 __lseek
0.02 498.33 0.11 239878 0.00 0.00 __dosmemget
0.02 498.44 0.11 124864 0.00 0.01 lee_dbf
0.02 498.56 0.11 57883 0.00 0.14 lee_fdespmbl
0.02 498.67 0.11 18940 0.01 0.65 lee_fmuebles
0.01 498.72 0.06 1165199 0.00 0.00 atol
0.01 498.78 0.06 240300 0.00 0.00
__FSEXT_get_function
0.01 498.83 0.06 70538 0.00 0.04 buscab_dbf
0.01 498.89 0.06 16003 0.00 0.01 _doprnt
0.01 498.94 0.06 5284 0.01 0.07 buf_a_pzs
0.01 499.00 0.06 1 55.56 23270.66 main
0.01 499.06 0.06 ceil
0.01 499.11 0.06 rflag
Regards, M.Alvarez
- Raw text -