Benchmark for some miscellaneous operations.






Misc >
Help >
FAQ >


Links >



Benchmark for some miscellaneous operations.

This program benchmarks the following operations:

  • Scanning of a single linked list,
  • Computing factorial using unsigned shorts or unsigned longs.
Name Time Ticks
Empty bench (correction) 8 us [17]
Single linked list init (100 elts) 2611 us [5222]
Scan list 100 elts 607 us [1214]
strlen const string 12 8 us [17]
strlen 12 175 us [351]
fact(8) unsigned short (40320) 526 us [1053]
fact(12) unsigned long (479001600) 2249 us [4498]
Source file: bench-misc.c

Copyright (C) 1999, 2000, 2001, 2002, 2003 Stéphane Carrez, France
Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


AltStyle によって変換されたページ (->オリジナル) /