[Bug libstdc++/19642] streaming doubles is very slow compared to sprintf

joerg dot richter at pdv-fs dot de gcc-bugzilla@gcc.gnu.org
Wed Jan 26 16:00:00 GMT 2005


------- Additional Comments From joerg dot richter at pdv-fs dot de  2005-01-26 16:00 -------
If it helps you, here the first lines of prof. But in practice some backtraces 
help me a lot more than a a [g]prof output. Its very fast in finding big 
bottlenecks, like setlocale in this PR.

count = 1000000

Name                 %Time     Seconds     Cumsecs  #Calls   msec/call
.strncpy              31.5        5.36        5.36
.getenv               19.6        3.34        8.70 5000000      0.0007
.mystrncpy             6.2        1.06        9.76 7000000      0.0002
.getgidx.GL            5.5        0.94       10.70
.__mcount              5.3        0.90       11.60
._doprnt               5.2        0.88       12.48 2000001      0.0004
.setlocale             4.6        0.79       13.27 3000000      0.0003
.strchr                4.2        0.72       13.99
.__issetuid            3.4        0.58       14.57 6000000      0.0001
.getuidx.GL            3.4        0.57       15.14
._ZNSolsEd             1.1        0.18       15.32
.main                  0.8        0.13       15.45       1    130.0
.malloc_y_start        0.8        0.13       15.58
.text                  0.7        0.12       15.70
._ZNKSt7num_putIcSt1   0.6        0.11       15.81
.malloc_y              0.6        0.11       15.92 1000007      0.0001
.strcmp                0.6        0.10       16.02
.free_y                0.6        0.10       16.12 1000002      0.0001
.malloc_y_heap         0.5        0.08       16.20 1000007      0.0001
.strcpy                0.4        0.07       16.27
.text                  0.3        0.05       16.32
.sprintf               0.3        0.05       16.37 1000000      0.0001
.__nl_langinfo_std     0.3        0.05       16.42 2000000      0.0000
.mf2x2                 0.2        0.04       16.46  999999      0.0000
.strcmp                0.2        0.04       16.50
._ZNKSt7num_putIcSt1   0.2        0.04       16.54
._ZdaPv.GL             0.2        0.04       16.58
.setlocale.GL          0.2        0.03       16.61


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19642



More information about the Gcc-bugs mailing list