From owner-freebsd-current Sun Jan 26 12:41:28 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA22701 for current-outgoing; Sun, 26 Jan 1997 12:41:28 -0800 (PST) Received: from tfs.com (tfs.com [140.145.250.1]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id MAA22696 for ; Sun, 26 Jan 1997 12:41:26 -0800 (PST) Received: from schizo.dk.tfs.com by tfs.com (smail3.1.28.1) with SMTP id m0vobNI-0003vqC; Sun, 26 Jan 97 12:40 PST Received: from critter.dk.tfs.com (critter-home [193.162.32.19]) by schizo.dk.tfs.com (8.8.2/8.7.3) with ESMTP id VAA18420; Sun, 26 Jan 1997 21:40:20 +0100 (MET) Received: from critter.dk.tfs.com (localhost [127.0.0.1]) by critter.dk.tfs.com (8.8.2/8.8.2) with ESMTP id VAA07864; Sun, 26 Jan 1997 21:41:36 +0100 (MET) To: Bruce Evans cc: current@FreeBSD.org, dg@root.com, swallace@ece.uci.edu Subject: Re: exec bug In-reply-to: Your message of "Mon, 27 Jan 1997 05:34:36 +1100." <199701261834.FAA05327@godzilla.zeta.org.au> Date: Sun, 26 Jan 1997 21:41:35 +0100 Message-ID: <7862.854311295@critter.dk.tfs.com> From: Poul-Henning Kamp Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk In message <199701261834.FAA05327@godzilla.zeta.org.au>, Bruce Evans writes: >No, I'm iterating 1000 times, so the malloc initialization time is in >the noise (unless it is done every time). Also, printf() probably calls >malloc() so the malloc initization time is already paid for. Here's a >version with more knobs to twiddle. Well, phkmalloc can be a bit undeterministic in this respect, if you want to be almost sure you get a fair picture do this: for (i=4;i<12;i++) malloc(1<