The Artima Developer Community
Sponsored Link

Agile Buzz Forum
How fast were those C Calls anyway

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
How fast were those C Calls anyway Posted: Mar 13, 2007 1:00 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: How fast were those C Calls anyway
Feed Title: Travis Griggs - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/travis-rss.xml
Feed Description: This TAG Line is Extra
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Travis Griggs - Blog

Advertisement

Two posts back, I was painting pretty pictures of C call overhead. One of the things that I tried later, was just how expensive is just plain old message sending. This is what VisualWorks Smalltalk does fast. I instantiated an object and pounded it with yourself 10,000,000 times. It took about 550ms. To put that in perspective, an simple "argless" int return call takes about 3000ms for the same number. So a C callout is a little more than 5x slower than Smalltalk message sends. Relatively speaking, this actually seems pretty fast. It would be interesting if other environments such as Ruby, Python, and other Smalltalks could compare their C callout speed vs. their own dispatch speed.

Read: How fast were those C Calls anyway

Topic: Recruiting People With Agile Potential Previous Topic   Next Topic Topic: It's a Wrap

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use