Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!floyd!harpo!decvax!ittvax!sii!wje From: wje@sii.UUCP (Bill Ezell) Newsgroups: net.unix Subject: Sprintf timings Message-ID: <405@sii.UUCP> Date: Wed, 21-Mar-84 11:17:35 EST Article-I.D.: sii.405 Posted: Wed Mar 21 11:17:35 1984 Date-Received: Thu, 22-Mar-84 02:19:07 EST Lines: 30 b Here are some interesting statistics on a few systems: main() { register int x; char str[50]; double fl; fl = (double) 2.2; printf("START\n"); for(x = 0; x < 100; x++) sprintf(str, "%5.5f",fl); printf("END\n"); } Using the "time" command when executing the binary: Onyx 0.3u 0.4s 0:01 76% Zilog 0.3u 2.0s 0:02 110% NCR 1.4u 0.2s 0:26 22% Altos 26.0u 0.2s 0:26 99% Zentec 44.6u 0.3s 0:55 81% Does anyone know why the Altos and Zentec are so bad? They are both Xenix ports, by the way. -Bill Ezell Software Innovations, Inc. (decvax,ittvax,masscomp)!sii!wje