avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] printf() benchmarks.


From: Dmitry K.
Subject: [avr-libc-dev] printf() benchmarks.
Date: Tue, 20 Feb 2007 17:35:30 +1000
User-agent: KMail/1.5

Hi.

A small printf() comparison of 1.4.5 and CVS versions:

Avr-libc-1.4.5:
                          Flash, bts   Stack, bts   Time, clks
Function                  avr2  avr4   avr2  avr4   avr2  avr4
--------------------------------------------------------------
sprintf(s,"%x",12345)     1914  1700     68    68   5731  5598
sprintf(s,"%d",12345)     1914  1700     68    68   7054  6894
sprintf(s,"%e",1.2345)    4658  4158    138   138  12025  9885


Avr-libc-CVS:
                          Flash, bts   Stack, bts   Time, clks
Function                  avr2  avr4   avr2  avr4   avr2  avr4
--------------------------------------------------------------
sprintf(s,"%x",12345)     1690  1500     57    57   1078  1010
sprintf(s,"%d",12345)     1690  1500     57    57   1714  1616
sprintf(s,"%e",1.2345)    3302  3004     64    64   2502  2283

Notes:
  * Flash: include all needed modules.
  * Stack: include all enclosed calls, but without a place to args.
  * Time:  without an args preparation.

Now, I think, it is possible to assemle an experimental version.

Dmitry.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]