9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] GCC3.0 [Was; Webbrowser]
Date: Thu,  6 Feb 2003 09:24:11 -0500	[thread overview]
Message-ID: <981e9fab3325f419f267dbb5e9f4937d@plan9.bell-labs.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0302052038050.7087-100000@csl>

[-- Attachment #1: Type: text/plain, Size: 225 bytes --]

I looked at at the benchmarks.  There are lots of times() calls in
inner loops that are very low cost in Unix but pretty expensive in
Plan 9.  Why not do a run under iostats and post the results.  It
might be enlightening.

[-- Attachment #2: Type: message/rfc822, Size: 5014 bytes --]

From: andrey mirtchovski <mirtchov@cpsc.ucalgary.ca>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] GCC3.0 [Was; Webbrowser]
Date: Wed, 5 Feb 2003 21:16:59 -0700 (MST)
Message-ID: <Pine.LNX.4.44.0302052038050.7087-100000@csl>

I've actually used gcc to compile something -- a simple cpu and memory
benchmark called 'ubench'.

I strongly desire such that the 'my OS is faster' flamewars continue on this
list, that's why i'm posting a URL to the ubench source and compilation
instructions for Plan9 (using the GCC3.0 port).

Unfortunately I couldn't be bothered rewriting the benchmark for the native
P9 compiler, so 'my compiler is faster' flame warriors will be left
dissatisfied.

The URL for ubench is:
	http://www.phystech.com/download/ubench.html

to compile under plan9:
	% gunzip < ubench-0.32.tar.gz | tar xv
	% cd ubench-0.32
	% # edit ubench.c and comment out syslog.h on line 25
	% gnu/gsh
	$ gcc -o ubench signals.c cpubench.c membench.c ubench.c
	(alternatively, to compile with optimizations, do:)
	$ gcc -o ubench signals.c cpubench.c membench.c ubench.c -O2
	$ ^D
	% strip ubench
	% ubench

here are the highly scientific results I got:

Celeron 900mhz (average ~40,000 in FreeBSD 4.7 w/ gcc2.95), the machine is a
standalone 9pcdisk/kfs terminal:

no optimizations:

% ubench
Unix Benchmark Utility v.0.3
Copyright (C) July, 1999 PhysTech, Inc.
Author: Sergei Viznyuk <sv@phystech.com>
http://www.phystech.com/download/ubench.html
Plan9 1 0 generic pcdisk
Ubench CPU:    23072
Ubench MEM:    14221
--------------------
Ubench AVG:    18646
%

with -O2:

% ubench
Unix Benchmark Utility v.0.3
Copyright (C) July, 1999 PhysTech, Inc.
Author: Sergei Viznyuk <sv@phystech.com>
http://www.phystech.com/download/ubench.html
Plan9 1 0 generic pcdisk
Ubench CPU:    24992
Ubench MEM:    18097
--------------------
Ubench AVG:    21544
%




Pentium 4, 2Ghz (average ~60,000 on FreeBSD 4.7 w/ gcc2.95, now the machine
has FBSD 5.0 w/ gcc3.2 on it, but is booted in p9 so I couldn't test :), the
machine is running as an auth/cpu/kfs server:

cpu% ubench
Unix Benchmark Utility v.0.3
Copyright (C) July, 1999 PhysTech, Inc.
Author: Sergei Viznyuk <sv@phystech.com>
http://www.phystech.com/download/ubench.html
Plan9 1 0 generic pcauth
Ubench CPU:    39110
Ubench MEM:    33350
--------------------
Ubench AVG:    36230
cpu%


with -O2:

cpu% ubench
Unix Benchmark Utility v.0.3
Copyright (C) July, 1999 PhysTech, Inc.
Author: Sergei Viznyuk <sv@phystech.com>
http://www.phystech.com/download/ubench.html
Plan9 1 0 generic pcauth
Ubench CPU:    43528
Ubench MEM:    44170
--------------------
Ubench AVG:    43849
cpu%

And something else: I just checked how ubench is compiled on freebsd (what
optimizations are used) and gave the same arguments to plan9's gcc. The
result is:


$ gcc -o ubench signals.c cpubench.c membench.c ubench.c -O2 -Wall '-malign-loops=2' '-malign-jumps=2' '-malign-functions=2' -fomit-frame-pointer -s
cpu% strip ubench
cpu% ubench
Unix Benchmark Utility v.0.3
Copyright (C) July, 1999 PhysTech, Inc.
Author: Sergei Viznyuk <sv@phystech.com>
http://www.phystech.com/download/ubench.html
Plan9 1 0 generic pcauth
Ubench CPU:    43863
Ubench MEM:    44170
--------------------
Ubench AVG:    44016
cpu%


as with everything, those results should not be taken too seriously :)

andrey

  reply	other threads:[~2003-02-06 14:24 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-05 20:44 [9fans] Webbrowser Keith Nash
2003-02-05 22:27 ` John Packer
2003-02-05 22:55   ` Skip Tavakkolian
2003-02-06  0:53     ` John Packer
2003-02-06  1:19       ` Russ Cox
2003-02-06  3:00         ` [9fans] GCC3.0 [Was; Webbrowser] andrey mirtchovski
2003-02-06  4:16           ` andrey mirtchovski
2003-02-06 14:24             ` David Presotto [this message]
2003-02-06 15:30               ` andrey mirtchovski
2003-02-06 17:32                 ` David Presotto
2003-02-06 18:10                   ` William K. Josephson
2003-02-06 18:16                     ` Ronald G. Minnich
2003-02-06 18:23                       ` William K. Josephson
2003-02-06 21:09                         ` Ronald G. Minnich
2003-02-06 12:30         ` [9fans] Webbrowser - porting mozilla matt
2003-02-06 12:52         ` Ian Broster
2003-02-06  2:13       ` [9fans] Webbrowser Peter Bosch
2003-02-06  5:28 [9fans] GCC3.0 [Was; Webbrowser] okamoto
2003-02-06  5:40 ` andrey mirtchovski
2003-02-06 15:15 ` Ronald G. Minnich
2003-02-06 15:39   ` Tharaneedharan Vilwanathan
2003-02-06 15:45     ` Ronald G. Minnich
2003-02-06 16:31       ` rob pike, esq.
2003-02-06 16:36         ` rob pike, esq.
2003-02-06 16:56           ` matt
2003-02-06 17:11             ` Ronald G. Minnich
2003-02-06 17:25               ` Tharaneedharan Vilwanathan
2003-02-06 17:32                 ` andrey mirtchovski
2003-02-06 17:44               ` Sam
2003-02-06 18:07                 ` Ronald G. Minnich
2003-02-06 18:14                   ` David Presotto
2003-02-06 18:17                     ` Ronald G. Minnich
2003-02-06 20:36                       ` Dean Prichard
2003-02-06 18:35                     ` andrey mirtchovski
2003-02-06 18:43                       ` David Presotto
2003-02-06 19:12                         ` David Presotto
2003-02-06 19:20                       ` Scott Schwartz
2003-02-06 17:23       ` David Butler
2003-02-06 17:50 C H Forsyth
2003-02-06 18:08 ` Ronald G. Minnich
2003-02-06 20:13 Keith Nash
2003-02-06 21:29 ` Tharaneedharan Vilwanathan
2003-02-06 21:33   ` Russ Cox
2003-02-06 21:40     ` Jack Johnson
2003-02-07  8:44       ` Richard Miller
2003-02-07 13:51         ` matt
2003-02-07 14:03           ` Boyd Roberts
2003-02-07  0:06     ` Geoff Collyer
2003-02-07  5:32     ` Skip Tavakkolian
2003-02-07  1:46 okamoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=981e9fab3325f419f267dbb5e9f4937d@plan9.bell-labs.com \
    --to=presotto@closedmind.org \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).