> -----Original Message-----
> From: 
> [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> org] On Behalf Of Dmitry K.
> Sent: Tuesday, February 20, 2007 12:36 AM
> To: [email protected]
> Subject: [avr-libc-dev] printf() benchmarks.
> 
> 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.

Wow! These are some great numbers Dmitry! :-)



_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to