ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> squeak
squeak
Raw benchmarks for initialize
by Stephane Ducasse other posts by this author
Apr 16 2003 4:19PM messages near this date
[ANN] Removing StarSqueak from image | Self and Smalltalk (was: Need feedback on simple idea)
Hi all

I just added
Object class> >new
	^ super new initialize

and

Object> >initialize
	^ self

and run the macro benchmarks before and after:
Here are the results without **any** other changes in the system, which 
means that
there may be  double initialize.

Stef


Note that I remove the benchmark 5 as it was 0

| new without res |
new := #(24484 233671 222475 14355 18370 14355).
without := #(18197 244711 299025 24297 17847 12651).
res := OrderedCollection new.
without with: new do: [:x :y | res add: (x /y) asFloat].
res

an OrderedCollection(0.743220062081359 1.047245914127128 
1.344083604899427 1.692580982236155 0.9715296679368536 
0.881295715778474)



Without initialize
 From Squeak3.5 of '11 April 2003' [latest update: #5180] on 16 April 
2003 at 5:27:41 pm

Benchmark #1: 18197ms
---------------------
	uptime		18.8s
	full			0 totalling 0ms (0.0% uptime)
	incr		850 totalling 1,159ms (6.0% uptime), avg 1.0ms
	tenures		2 (avg 425 GCs/tenure)

Benchmark #2: 244711ms
---------------------
	uptime		244.8s
	full			8 totalling 120,195ms (49.0% uptime), avg 15024.0ms
	incr		14761 totalling 20,864ms (9.0% uptime), avg 1.0ms
	tenures		1,554 (avg 9 GCs/tenure)

Benchmark #3: 299025ms
---------------------
	uptime		300.8s
	full			2 totalling 241,835ms (80.0% uptime), avg 120918.0ms
	incr		2745 totalling 4,268ms (1.0% uptime), avg 2.0ms
	tenures		199 (avg 13 GCs/tenure)

Benchmark #4: 24297ms
---------------------
	uptime		25.7s
	full			0 totalling 0ms (0.0% uptime)
	incr		938 totalling 879ms (3.0% uptime), avg 1.0ms
	tenures		1 (avg 938 GCs/tenure)

Benchmark #5: 0ms
---------------------
	uptime		0.5s
	full			0 totalling 0ms (0.0% uptime)
	incr		0 totalling 0ms (0.0% uptime), avg
	tenures		0

Benchmark #6: 17847ms
---------------------
	uptime		18.1s
	full			0 totalling 0ms (0.0% uptime)
	incr		953 totalling 1,624ms (9.0% uptime), avg 2.0ms
	tenures		37 (avg 25 GCs/tenure)

Benchmark #7: 12651ms
---------------------
	uptime		15.9s
	full			0 totalling 0ms (0.0% uptime)
	incr		410 totalling 730ms (5.0% uptime), avg 2.0ms
	tenures		7 (avg 58 GCs/tenure)

---------------------
Total time = 616728 milliseconds.



With initialize

 From Squeak3.5 of '11 April 2003' [latest update: #5180] on 16 April 
2003 at 5:50:17 pm

Benchmark #1: 24484ms
---------------------
	uptime		28.2s
	full			0 totalling 0ms (0.0% uptime)
	incr		850 totalling 1,142ms (4.0% uptime), avg 1.0ms
	tenures		2 (avg 425 GCs/tenure)

Benchmark #2: 233671ms
---------------------
	uptime		235.8s
	full			8 totalling 77,828ms (33.0% uptime), avg 9729.0ms
	incr		14817 totalling 26,765ms (11.0% uptime), avg 2.0ms
	tenures		1,543 (avg 9 GCs/tenure)

Benchmark #3: 222475ms
---------------------
	uptime		224.7s
	full			2 totalling 166,637ms (74.0% uptime), avg 83319.0ms
	incr		3064 totalling 4,535ms (2.0% uptime), avg 1.0ms
	tenures		197 (avg 15 GCs/tenure)

Benchmark #4: 20331ms
---------------------
	uptime		24.9s
	full			0 totalling 0ms (0.0% uptime)
	incr		943 totalling 914ms (4.0% uptime), avg 1.0ms
	tenures		1 (avg 943 GCs/tenure)

Benchmark #5: 0ms
---------------------
	uptime		0.3s
	full			0 totalling 0ms (0.0% uptime)
	incr		0 totalling 0ms (0.0% uptime), avg
	tenures		0

Benchmark #6: 18370ms
---------------------
	uptime		20.9s
	full			0 totalling 0ms (0.0% uptime)
	incr		1030 totalling 1,675ms (8.0% uptime), avg 2.0ms
	tenures		39 (avg 26 GCs/tenure)

Benchmark #7: 14355ms
---------------------
	uptime		17.7s
	full			0 totalling 0ms (0.0% uptime)
	incr		414 totalling 767ms (4.0% uptime), avg 2.0ms
	tenures		7 (avg 59 GCs/tenure)

---------------------
Total time = 533686 milliseconds.






Prof. Dr. Stéphane DUCASSE
http://www.iam.unibe.ch/~ducasse/
  "if you knew today was your last day on earth, what would you do 
different? ...  especially if,
  by doing something different, today might not be your last day on 
earth" Calvin&Hobbes

"The best way to predict the future is to invent it..." Alan Kay.

Open Source Smalltalks: http://www.squeak.org, 
http://www.gnu.org/software/smalltalk/smalltalk.html
Free books for Universities at 
http://www.esug.org/sponsoring/promotionProgram.html
Free Online Book at 
http://www.iam.unibe.ch/~ducasse/WebPages/FreeBooks.html

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved