Re: [jruby-dev] contribution to talks section

2008-02-01 Thread Alexey Verkhovsky
tally kicks MRI's ass performance-wise. Reality is not so cool though: applications are typically a tad slower on JRuby than on MRI. -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://

[jruby-dev] JRuby vs MRI - Mingle performance and memory profile

2007-12-22 Thread Alexey Verkhovsky
, it blows permgen out of all proportion. Not surprising, since each JITed method requires its own class and classloader, Mingle has a lot of methods, and there are 9 copies of everything. Sigh... -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://r

Re: [jruby-dev] Replacing CI

2007-12-21 Thread Alexey Verkhovsky
ny problems, I shall fix them pronto. -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com] - To unsubscribe from this list please visit: http://xircle

[jruby-dev] [jira] Created: (JRUBY-1734) Memory leak in trap()

2007-12-17 Thread Alexey Verkhovsky (JIRA)
rev 5284 Reporter: Alexey Verkhovsky This script leaks several kilobytes per iteration: {quote} loop do previous = trap('TERM') { } trap('TERM', previous) end {quote} Ola and myself are working on a fix. Critical importance of this issue is in the fact th

[jruby-dev] [jira] Created: (JRUBY-1708) Compiler blows up with "NoVarsDynamicScope cannot be grown; use ManyVarsDynamicScope"

2007-12-12 Thread Alexey Verkhovsky (JIRA)
Project: JRuby Issue Type: Bug Environment: JRuby rev 5230 Reporter: Alexey Verkhovsky Assignee: Thomas E Enebo 1. create a skeleton Rails app 2. try to run it with +C option. Enjoy the fireworks. [EMAIL PROTECTED]:~/src$ rails foo ... [EMAIL PROTECTED]:~/s

[jruby-dev] [jira] Created: (JRUBY-1706) [PATCH] Bad format for "frozen" error messages

2007-12-12 Thread Alexey Verkhovsky (JIRA)
[PATCH] Bad format for "frozen" error messages -- Key: JRUBY-1706 URL: http://jira.codehaus.org/browse/JRUBY-1706 Project: JRuby Issue Type: Bug Reporter: Alexey

Re: [jruby-dev] What kind of performance to measure?

2007-12-06 Thread Alexey Verkhovsky
ago. Not anymore. However, it's still 3 times slower than Java Petstore. So, yeah, ioptimizing anything in the runtime is largely a death by thousand cuts by now. Either that, or awe-inspiring heroics, like regex replacement and Ruby compiler. -- Alexey Verkhovsky CruiseCo

Re: [jruby-dev] Re: [jruby-user] A JRuby Conference?

2007-11-11 Thread Alexey Verkhovsky
On Nov 10, 2007 9:36 PM, Ola Bini <[EMAIL PROTECTED]> wrote: > I would definitely be available. =) +1 - To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

Re: [jruby-dev] Disabling ObjectSpace in 1.1

2007-10-29 Thread Alexey Verkhovsky
+1, same reasons as Tom (in a nutshell, people don't read manuals). -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com] - To unsubscribe from this

Re: [jruby-dev] [jira] Created: (JRUBY-1449) rake-based build system for JRuby

2007-10-23 Thread Alexey Verkhovsky
On 10/23/07, Eric Armstrong <[EMAIL PROTECTED]> wrote: >How did you get tasks named "safe:clean", etc? namespace :foo do task :bar do ... end end -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubywor

[jruby-dev] [jira] Created: (JRUBY-1458) ARGF.rewind blows up (and it shouldnt)

2007-10-20 Thread Alexey Verkhovsky (JIRA)
Reporter: Alexey Verkhovsky Assignee: Thomas E Enebo Priority: Minor [EMAIL PROTECTED]:~$ jruby -e 'ARGF.rewind' /etc/passwd -e:1: Illegal seek (Errno::ESPIPE) [EMAIL PROTECTED]:~$ [EMAIL PROTECTED]:~$ ruby -e 'ARGF.rewind' /etc/passwd [EMAIL PROTECTED]:~$

[jruby-dev] [jira] Created: (JRUBY-1457) Incorrect handling of STDIN redirect by system() and friends

2007-10-20 Thread Alexey Verkhovsky (JIRA)
: JRuby 1.x Environment: trunk rev 4652, Ubuntu 7 Linux Reporter: Alexey Verkhovsky Assignee: Thomas E Enebo Priority: Minor system() treats < as an argument, not as an STDIN redirect. [EMAIL PROTECTED]:~/src/jruby$ jruby -e "system %{jruby -e &#

[jruby-dev] [jira] Created: (JRUBY-1455) Cloning ARGF in IRB results in a java.lang.ClassCastException

2007-10-19 Thread Alexey Verkhovsky (JIRA)
: trunk rev 4628 Reporter: Alexey Verkhovsky Assignee: Thomas E Enebo [EMAIL PROTECTED]:~/src/jruby/test$ jruby -e 'argf = ARGF.clone' # no problem [EMAIL PROTECTED]:~/src/jruby/test$ jruby -S irb irb(main):001:0> argf = ARGF.clone Exception in

Re: [jruby-dev] Current best Petstore numbers

2007-10-16 Thread Alexey Verkhovsky
On 10/16/07, Christian Seiler <[EMAIL PROTECTED]> wrote: > I don't really know what to do. One thing that worries me a bit is that all > of you guys seem to be using > OS-X Nope, I'm doing all this on a Dell D620 running Ubuntu. -- Alexey Verkhovs

Re: [jruby-dev] JRuby profiler?

2007-10-15 Thread Alexey Verkhovsky
> On 10/15/07, Chris Nelson <[EMAIL PROTECTED]> wrote: > > don't guess". It seems like we could do something fairly easily using the > > eventHook stuff we've been using for jruby-debug, There are beginnings of a sampling profiler on the trunk, since about

Re: [jruby-dev] Current best Petstore numbers

2007-10-15 Thread Alexey Verkhovsky
, not Petstore does eval() repeatedly. -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com] - To unsubscribe from this list please visit: http://x

[jruby-dev] [jira] Created: (JRUBY-1431) java.util.ConcurrentModificationException in RubyThreadGroup.list()

2007-10-14 Thread Alexey Verkhovsky (JIRA)
Components: Core Classes/Modules Environment: rev 4585 Reporter: Alexey Verkhovsky While running Petstore shootout, I sometimes get the following error: Exception in thread "Ruby Thread24493807" java.util.ConcurrentModificationException at java.ut

[jruby-dev] [jira] Created: (JRUBY-1392) [PATCH] Smarter method caching

2007-09-27 Thread Alexey Verkhovsky (JIRA)
Reporter: Alexey Verkhovsky Attachments: smarter_method_caching.patch Attached patch makes Petstore under Mongrel-jruby about 10% faster, by doing the following: 1. RubyModule.includeModule() clear CacheMap and MethodCache selectively, instead of wholesale. 2. clearing

Re: [jruby-dev] JRuby vs MRI - Petstore shootout

2007-09-26 Thread Alexey Verkhovsky
1.0 branch, but still present in 1.0.1 release. -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com] - To unsubscribe from this list p

Re: [jruby-dev] JRuby vs MRI - Petstore shootout

2007-09-25 Thread Alexey Verkhovsky
Two questions: 1. Did you pass -J-Djruby.objectspace.enabled=false ? 2. Do you see the benchmarking script do JIT warmup when running under JRuby? Charles: yep, I didn't change any settings other than jruby.objectspace.enabled. -- Alexey Verkhovsky CruiseControl.rb

Re: [jruby-dev] JRuby vs MRI - Petstore shootout

2007-09-25 Thread Alexey Verkhovsky
On 9/25/07, Nick Sieger <[EMAIL PROTECTED]> wrote: > On 9/25/07, Alexey Verkhovsky <[EMAIL PROTECTED]> wrote: > I'm having trouble seeing the difference from your table below. Can you open the spreadsheet I sent in a follow up message? If not, the first two columns are fo

Re: [jruby-dev] JRuby vs MRI - Petstore shootout

2007-09-24 Thread Alexey Verkhovsky
On 9/24/07, Alexey Verkhovsky <[EMAIL PROTECTED]> wrote: > Some new numbers. Attaching an OpenOffice spreadsheet. -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com] jruby_rev4384_vs_MRI.ods Description: ap

Re: [jruby-dev] JRuby vs MRI - Petstore shootout

2007-09-24 Thread Alexey Verkhovsky
unk/ (rev 177). Measuring: Ruby: echo 'load "script/benchmark_action"' | ruby script/console production JRuby: echo 'load "script/benchmark_action"' | jruby -J-Djruby.objectspace.enabled=false script/console production # replace production wi

[jruby-dev] [jira] Created: (JRUBY-1384) Numeric#initialize_copy() is public, should be private

2007-09-24 Thread Alexey Verkhovsky (JIRA)
/Modules Environment: rev 4376 Reporter: Alexey Verkhovsky Priority: Trivial Numeric#initialize_copy() is public, should be private Sending a patch to Ola -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the

[jruby-dev] [jira] Created: (JRUBY-1383) -4.0.remainder(2) returns 2.0, should be 0.0

2007-09-24 Thread Alexey Verkhovsky (JIRA)
Environment: rev 4376 Reporter: Alexey Verkhovsky Priority: Minor -4.0.remainder(2) returns 2.0, should be 0.0. I've got a patch already, Ola will look at it and check in. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contac

Re: [jruby-dev] Extremely slow logging is related to file.sync = true

2007-09-22 Thread Alexey Verkhovsky
ion 4361) @@ -289,7 +289,6 @@ */ public void sync() throws IOException { flushWrite(); -channel.force(false); } public ByteList sysread(int number) throws IOException, BadDescriptorException { -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thought

Re: [jruby-dev] Extremely slow logging is related to file.sync = true

2007-09-21 Thread Alexey Verkhovsky
In the current trunk (4369), disabling logging makes less than 1 msec difference in the response time of a Petstore page. Also (once JIT compilation kicks in) logging an 80-character message 10,000 times takes 0.39 sec on JRuby and 0.35 sec on MRI. Case closed, I guess :) -- Alexey Verkhovsky

Re: [jruby-dev] Extremely slow logging is related to file.sync = true

2007-09-20 Thread Alexey Verkhovsky
On 9/20/07, Thomas E Enebo <[EMAIL PROTECTED]> wrote: > flushWrite will write to the channel > and is not a local buffer. Oops, missed that statement. -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thou

Re: [jruby-dev] Extremely slow logging is related to file.sync = true

2007-09-20 Thread Alexey Verkhovsky
ng the internal buffer to OS level I/O buffer on write ensures that two *separate processes*, writing to the same log file, will have their log entries in the right order in the file. So, what will make that happen? -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontr

[jruby-dev] Extremely slow logging is related to file.sync = true

2007-09-20 Thread Alexey Verkhovsky
rite msg }} -0.007927 sec => nil *JRuby trunk * irb(main):050:0> f = open('/tmp/foo', (File::WRONLY | File::APPEND)) => # irb(main):051:0> time { 1000.times { f.write msg }} -0.0020 sec => nil irb(main):052:0> f.sync = true => true irb(main):053:0> time { 1000.t

Re: [jruby-dev] JRuby vs MRI - Petstore shootout

2007-09-19 Thread Alexey Verkhovsky
On 9/4/07, Alexey Verkhovsky <[EMAIL PROTECTED]> wrote: > > Can you try hitting like 100,000 to get an > > idea if hotspot starts warming more. > Sure. > > Actually, most time-consuming methods (from profiler point of view) > get 5- or 6-digit number of hits durin

[jruby-dev] [jira] Created: (JRUBY-1368) Attempting File.open('foo', 'w') when './foo' is a directory raises Errno:ERNOENT, but should raise Errno:EISDIR

2007-09-17 Thread Alexey Verkhovsky (JIRA)
368 URL: http://jira.codehaus.org/browse/JRUBY-1368 Project: JRuby Issue Type: Bug Components: Miscellaneous Environment: JRuby rev 4334 Reporter: Alexey Verkhovsky Assignee: Thomas E Enebo Priority: Minor * MRI

Re: [jruby-dev] JRuby vs MRI - Petstore shootout

2007-09-04 Thread Alexey Verkhovsky
I'll test it though. -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com] - To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

Re: [jruby-dev] JRuby vs MRI - Petstore shootout

2007-08-31 Thread Alexey Verkhovsky
dContext, RubyObject and such). By the way, Petstore is a very simple Rails application. I'm going to do some comparisons with a couple of much bigger apps TW is building, we'll see how that stacks up. I won't be able to publish it, like Petstore, but I'll try to at

Re: [jruby-dev] JRuby vs MRI - Petstore shootout

2007-08-30 Thread Alexey Verkhovsky
ging disabled: 45 req/sec (!) -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com] - To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

[jruby-dev] [jira] Created: (JRUBY-1302) Intermittent Mongrel failures with "uninitialized constant Errno::ECONNABORTED"

2007-08-30 Thread Alexey Verkhovsky (JIRA)
ect: JRuby Issue Type: Bug Components: Core Classes/Modules Environment: JRuby trunk rev 4246 (but also observed on earlier revisions) Mongrel-jruby 1.0.1 Reporter: Alexey Verkhovsky When running Apache Benchmark tests against Petstore from tw-commons, I sometimes

Re: [jruby-dev] JRuby vs MRI - Petstore shootout

2007-08-21 Thread Alexey Verkhovsky
dspike. OK, change of wording. I have to make it all play together on my rig. :) -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com] - To unsubscri

Re: [jruby-dev] JRuby vs MRI - Petstore shootout

2007-08-20 Thread Alexey Verkhovsky
first. Another thing I am going to try in the next round is generating a much larger dataset, so that Petstore has to display more data on the page. Does anybody have any more suggestions? To remind, I'm looking for factors that have a large impact on JRuby Rails performance. -- Alexey

Re: [jruby-dev] JRuby vs MRI - Petstore shootout

2007-08-18 Thread Alexey Verkhovsky
abase sessions: 14 requests/sec Turned off ObjectSpace (jruby -O): 16 requests/sec Server VM (jruby -O -J-server): 16 requests/sec With disabled logging: 33 requests/sec * To turn off logging, add RAILS_DEFAULT_LOGGER.level = Logger::FATAL to config/environments/production.rb -- Alexey Verkh

[jruby-dev] Published API and deprecation, or why rails-integration doesn't work with JRuby trunk

2007-08-18 Thread Alexey Verkhovsky
lowly and cautiously, through deprecation. -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com] - To unsubscribe from this list please visit:

Re: [jruby-dev] JRuby vs MRI - Petstore shootout

2007-08-18 Thread Alexey Verkhovsky
rpret and profile this way. That's why I'm using ab. When get that 8-cores box, we'll start doing something more interesting. -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://ru

[jruby-dev] JRuby vs MRI - Petstore shootout

2007-08-18 Thread Alexey Verkhovsky
ct=K9-DL-01 * Test: ab -c 1 -n 100 http://localhost:3002/shop/viewProduct.shtml?product=K9-DL-01 -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com] ---

[jruby-dev] [jira] Created: (JRUBY-1278) ConcurrentModificationException in CacheMap.clear

2007-08-16 Thread Alexey Verkhovsky (JIRA)
Environment: JRuby trunk (rev 4178) JVM 1.6.0-b105 Ubuntu 7.0 desktop PetStore Rails app : http://tw-commons.rubyforge.org/svn/trunk/ : rev 21 Reporter: Alexey Verkhovsky Assignee: Thomas E Enebo Priority: Critical Trying to run PetStore from tw-commons under

[jruby-dev] [jira] Created: (JRUBY-1277) Mongrel clashes with JVM for the right to handle SIGUSR1

2007-08-16 Thread Alexey Verkhovsky (JIRA)
-extras Affects Versions: JRuby 1.x Environment: JRuby trunk, rev 4178 JVM 1.6.0-b105 Ubuntu 7.0 desktop mongrel-1.0.1-jruby.gem Rails 1.2.3 skeleton Rails app produced by 'rails foo' Reporter: Alexey Verkhovsky Assignee: Thomas E Enebo run jruby scr

Re: [jruby-dev] Cloning a Runtime

2007-08-15 Thread Alexey Verkhovsky
average Rails app would take 290 Mb instead of 300, woohoo... 10 megabytes per runtime is where the difference would become noticeable. -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks

Re: [jruby-dev] JRuby cruise control

2007-08-10 Thread Alexey Verkhovsky
On 8/10/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: > Dmitry Verkhovsky wrote: > If cc.rb under JRuby could give us all the various CI runs we want > reliably indicating failures rather than giving us all sorts of false > positives > it would already be ahead Hey, Charles. It depends on

Re: [jruby-dev] JRuby Style Guide

2007-06-14 Thread Alexey Verkhovsky
On 6/14/07, Tim Bray <[EMAIL PROTECTED]> wrote: Even better, bloody well use parentheses, then you don't have to clutter up your memory with this junk. Nor do the people who will have to read your code. -Tim Stuff like render :text => 'foo' and return is widely used. As in "I've seen it in

Re: [jruby-dev] JRuby Style Guide

2007-05-31 Thread Alexey Verkhovsky
On 5/31/07, Eric Armstrong <[EMAIL PROTECTED]> wrote: Ruby Code: - always use && and ||, not 'and' and 'or' Why is that? For consistency with Java? Or is there some other benefit? This is a convention in Rails core. Its origin is that 'and' and 'or' have priority lower than && and ||, and lo

Re: [jruby-dev] Time to adopt an official logo for 1.0?

2007-05-23 Thread Alexey Verkhovsky
On 5/23/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: I don't know about the steaming gem It was a joke! :) - To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

Re: [jruby-dev] Time to adopt an official logo for 1.0?

2007-05-23 Thread Alexey Verkhovsky
On 5/23/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: > There's the obvious approach, as in http://www.tbray.org/tmp/jr.png -Tim Steaming gem? :) Seriously guys, you are Sun Microsystems. Don't you have a decent visual designer at hand when you need one? Alex

Re: [jruby-dev] building and running jruby source

2007-05-23 Thread Alexey Verkhovsky
On 5/23/07, Nick Sieger <[EMAIL PROTECTED]> wrote: I vote for removing it. Or make it lazy. If there is no resource, just parse the script (instead of failing). Anyone should be able to run JRuby in an IDE, and those resources are what makes it somewhat hard right now. Alex -

Re: [jruby-dev] Possible reasons why RDoc is slow

2007-05-22 Thread Alexey Verkhovsky
On 5/22/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: With the compiler enabled and fully compiling, we are faster than MRI Ha, but of course. With a compiler you just about eliminate that other abstraction layer, or pay the price for it upfront, in compilation. Anyway, this all is hand-w

Re: [jruby-dev] Possible reasons why RDoc is slow

2007-05-22 Thread Alexey Verkhovsky
On 5/22/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: If you're running with code older than a few days ago Why would I? Of course not. I'm doing svn up as often as I can. , you won't see JIT compiled methods in -rprofile. Nope, and I don't see them in Java profiler, either. > Like I

Re: [jruby-dev] Possible reasons why RDoc is slow

2007-05-22 Thread Alexey Verkhovsky
On 5/22/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: but if that's one of the primary performance issues for rdoc Not sure if it will be a big win for RDoc. It may. Generally, making sure that RDoc internals are JIT-compiled would certainly help. As a matter of fact, I don't see -any- c

[jruby-dev] Possible reasons why RDoc is slow

2007-05-22 Thread Alexey Verkhovsky
Hi all, At Ola's request I've been trying to figure out why RDoc performance is as bad as it is. Well, I don't see any cheap wins there, but here are some observations: 1. RDoc is doing a ton of low-level byte pushing. Consider RDoc::RubyParser#get_tk at rdoc/parsers/parse_rb.rb:1465 (which is w

Re: [jruby-dev] The Final Bugs

2007-05-22 Thread Alexey Verkhovsky
Hey, Charles, Did you have a look at http://jira.codehaus.org/browse/JRUBY-972 ? This seems heinous enough to warrant "must be fixed before 1.0" status (interpreter error causing an endless loop in RDoc). -- Alex Verkhovsky - T

[jruby-dev] [jira] Created: (JRUBY-972) local scope in until node

2007-05-21 Thread Alexey Verkhovsky (JIRA)
Reporter: Alexey Verkhovsky Priority: Critical My theoretical foo is weak, so apologies for expressing this in vague terms. However... bear with me, this is a very serious bug. Running the following command in JRuby: jruby `which rdoc` ~/src/jruby/jruby/lib/ruby/1.8/rdoc/generators

Re: [jruby-dev] Problem with JRuby trunk

2007-04-28 Thread Alexey Verkhovsky
On 4/28/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: Unless you've turned [the JIT compiler] on No, I did not. However there is at least one known issues with returns leaking out, and you've probably stumbled across it. Is the rescue block trying to catch LocalJumpError? It's a catch

[jruby-dev] Problem with JRuby trunk

2007-04-28 Thread Alexey Verkhovsky
Hi all, This is what I am getting when I try to run CruiseControl.rb builder process with jRuby trunk rev. 3586: [EMAIL PROTECTED]:~/src/ccrb$ jruby script/builder FailingProject --trace [debug] Loading plugin project_logger [debug] Loading plugin email_notifier [debug] Loading plugin builder_st