Article View: gnu.gcc.help
Article #42660Re: performance measurements across 8 platforms: atoi()/sprintf("%d")
From: Doug Siebert
Date: Tue, 21 Nov 1995 00:00
Date: Tue, 21 Nov 1995 00:00
20 lines
1639 bytes
1639 bytes
forman@cs.washington.edu University of Washington, Computer Science & Engineering (George Forman) writes: [Everything deleted] Let me get this straight. You are comparing the system library version of i = atoi(s) and sprintf(s, "%d", i) with your hand coded versions? OK, fine so far -- but you don't have a sprintf, you have an itoa function. Of course the system library will be slower, sprintf is about 1000 times more powerful than itoa! If the system provided an itoa, then you could compare directly and I'd think your complaints might have a slight bit of merit if your versions were significantly faster. But as it stands you are comparing apples and oranges. Hell, more like apples and canned hams... -- Doug Siebert || "Usenet is essentially Letters to the Editor University of Iowa || without the editor. Editors don't appreciate dsiebert@icaen.uiowa.edu || this, for some reason." -- Larry Wall (c) 1995 Doug Siebert. Redistribution via the Microsoft Network is prohibited.
Technical Details
Message-ID:
<gnusenet48btj3$pba@server05.icaen.uiowa.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<DI229s.AA7@beaver.cs.washington.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,41bf6a7c37c19df3
X-Google-Attributes: gid11318c,public
From: dsiebert@icaen.uiowa.edu (Doug Siebert)
Subject: Re: performance measurements across 8 platforms: atoi()/sprintf("%d")
Date: 1995/11/21
Message-ID: <gnusenet48btj3$pba@server05.icaen.uiowa.edu>
X-Deja-AN: 119884129
distribution: gnu
sender: daemon@cis.ohio-state.edu
references: <DI229s.AA7@beaver.cs.washington.edu>
organization: Iowa Computer Aided Engineering Network, University of Iowa
keywords: comp.programming.contests
newsgroups: gnu.gcc.help