Link Details

Voters make better lovers! Login and vote now.
Link 331489 thumbnail
User 202956 avatar

By tiago182
via tiagofernandez.blogspot.com
Published: Dec 28 2009 / 15:48

The idea of this post is to evaluate similar implementations done in Ruby, JavaScript, Groovy and Python through JSR-223's API using the corresponding scripting engines (i.e. JRuby, Rhino, Groovy and Jython). The algorithm I have implemented resembles a Depth-first search (DFS). Basically I build a tree with 5,101 nodes and visit each one of them in a DFS way. For profiling purposes I do that exactly 10 times by (re)evaluating the same script, which is never pre-compiled.
  • 15
  • 0
  • 2081
  • 738

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.