[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Objective-C and Smalltalk; speed of message send
From: |
Lyndon Tremblay |
Subject: |
Objective-C and Smalltalk; speed of message send |
Date: |
Sun, 08 Aug 2004 12:08:36 +0800 |
"5 timesRepeat: [ Transcript show: 0 tinyBenchmarks; cr ]"
The average of the 3 highest results were chosen (see
http://minnow.cc.gatech.edu/squeak/768) . Ports were done to GNU Smalltalk,
C and Objective-C - GCC 3.4 in all cases)
Squeak 3.8alpha (VM compiled at -O3, populated image),
84563764 bytecodes/sec; 3939081 sends/sec
GNU Smalltalk 2.1.8 (no JIT),
52179161 bytecodes/sec; 3667234 sends/sec
Both compiled at -O3,
C Function - 1938968 calls/sec
Objective-C Message - 824973 sends/sec
This is under a system with stable load, tested multiple times. I've had the
Squeak test at "144m bytecodes/sec; 7.7m sends/sec", so perhaps an active
image had an effect here. Um, tell me what I have missed, or what is really
going on. I am surprised enough to not believe it is a fair test.
--Lyndon
objcbench.m
Description: Binary data
stbench.st
Description: Binary data
- Gnustep usability, Jonathan Shipley, 2004/08/07
- Re: Gnustep usability, MJ Ray, 2004/08/07
- Re: Gnustep usability, Rogelio Serrano, 2004/08/07
- Re: Objective-C and Smalltalk; speed of message send, Marcel Weiher, 2004/08/10
- Re: Objective-C and Smalltalk; speed of message send, Richard Frith-Macdonald, 2004/08/10
- Re: Objective-C and Smalltalk; speed of message send, Alexander Malmberg, 2004/08/10
- Re: Objective-C and Smalltalk; speed of message send, Adrian Robert, 2004/08/10
- Re: Objective-C and Smalltalk; speed of message send, Alexander Malmberg, 2004/08/10
- Re: Objective-C and Smalltalk; speed of message send, Richard Frith-Macdonald, 2004/08/10
- Re: Objective-C and Smalltalk; speed of message send, Marcel Weiher, 2004/08/10
Re: Gnustep usability, Jonathan Shipley, 2004/08/09