Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!inria!imag!phb From: phb@imag.imag.fr (Philippe Bernadat) Newsgroups: comp.os.mach Subject: Re: Mach context switch time Message-ID: <6393@imag.imag.fr> Date: 23 Oct 89 08:09:36 GMT References: <2895@netcom.UUCP> Reply-To: phb@imag.fr (Philippe Bernadat) Organization: IMAG, University of Grenoble, France Lines: 26 In article <2895@netcom.UUCP> hue@netcom.UUCP (Jonathan Hue) writes: > >The following program executes the loop 10000 times in 7.3 seconds on a >NeXT. Each time through the loop is 2 context switches, so this works >out to 2740 context switches/sec, or 365us per context switch. > Running the same program on a NeXT and on a DS3100 I got the following numbers: elapsed time for context switch context switch 10,000 loops time (usec) per second NeXT 7.6 380 2,631 DS3100 (Mach 2.5) 2.3 115 8,695 +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ Philippe Bernadat EMAIL: bernadat@ri.osf.fr OSF Research Institute PHONE: (33) 76 42 82 41 2 Avenue Vignate FAX: (33) 76 54 03 99 38610 Gieres FRANCE -- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ Philippe Bernadat EMAIL: bernadat@ri.osf.fr OSF Research Institute PHONE: (33) 76 42 82 41 2 Avenue Vignate FAX: (33) 76 54 03 99 38610 Gieres FRANCE