The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Rails on 1.9: first benchmarks, YARV exposed to non-synthetic tests

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
Eigen Class

Posts: 358
Nickname: eigenclass
Registered: Oct, 2005

Eigenclass is a hardcore Ruby blog.
Rails on 1.9: first benchmarks, YARV exposed to non-synthetic tests Posted: Mar 28, 2007 5:38 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Eigen Class.
Original Post: Rails on 1.9: first benchmarks, YARV exposed to non-synthetic tests
Feed Title: Eigenclass
Feed URL: http://feeds.feedburner.com/eigenclass
Feed Description: Ruby stuff --- trying to stay away from triviality.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Eigen Class
Latest Posts From Eigenclass

Advertisement

News from moriq again. He's on the way to benchmarking real Rails apps under 1.9.

Preliminary results

When benchmarking basic requests with a minimalistic schema (only one int column), even though YARV serviced requests 15% faster, it took much longer to load the environment (50% slower). This comes as no surprise since plain old (evil) eval is slower in YARV.

Unexpected results did come up when benchmarking direct DB requests against sqlite3, both directly and through ActiveRecord:

# sqlite3-ruby select (n=1000)
ruby-1.8.6: 2142 req/sec
ruby-1.8.6: 2153 req/sec
ruby-1.9.0: 2313 req/sec
ruby-1.9.0: 2328 req/sec
  
# activerecord -> sqlite3-ruby select (n=1000)
ruby-1.8.6: 1098 req/sec
ruby-1.8.6: 1103 req/sec
ruby-1.9.0:  801 req/sec
ruby-1.9.0:  806 req/sec

In fact, the mere fact of requiring active_record (and indirectly ActiveSupport) causes a sharp decrease in performance:

sqlite3-ruby-bench-1.jpg

(bm3-as-* is the basic sqlite3 benchmark with "require active_record")

Culprits


Read more...

Read: Rails on 1.9: first benchmarks, YARV exposed to non-synthetic tests

Topic: A trap to avoid with ruby assignments Previous Topic   Next Topic Topic: png version 1.1.0 has been released!

Sponsored Links



Google
  Web Artima.com   

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