Re: [racket] My toy web app's performance: Racket vs Perl vs Ruby

2012-04-21 Thread Chad Albers
Hi, Great project and benchmarks. I, too, want to use Racket Scheme for more serious projects, and even have my company's go ahead to incorporate it into our service architecture. I'm pursuing the mongrel2 option, and I just produced a beta mongrel2 racket adapter in pursuit of that goal. https

Re: [racket] My toy web app's performance: Racket vs Perl vs Ruby

2012-04-18 Thread joshua
Jay, Ha! I was just about to write you guys back about this. I think I found the problem(s). 1) Too many database connections. I had the max_connections on the postgres pool set to like 60 or something. The Racket server would happily accept a bunch of connections, blow up the database wit

Re: [racket] My toy web app's performance: Racket vs Perl vs Ruby

2012-04-18 Thread Jay McCarthy
I'm surprised you don't get any difference with the new version. This is very surprising for me. Here are results from my tiny Macbook Air: % ab -c 20 -n 1 http://localhost:8000/ This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.

Re: [racket] My toy web app's performance: Racket vs Perl vs Ruby

2012-04-13 Thread joshua
Looks like I'm running v5.2.1. TK On Thu, Apr 12, 2012 at 12:24:49PM -0600, Jay McCarthy wrote: > I'm interested in the answers to the other questions posed, but > additionally, I'd be curious what version of Racket you are using. > > I recently (in the last three-ish months) fixed a problem

Re: [racket] My toy web app's performance: Racket vs Perl vs Ruby

2012-04-13 Thread joshua
Right, just from the command line. I don't tend to use Dr. Racket, much. I'm a vim geek, and this is all on my server. Thanks for the advice. I'll check out the profiler. Your SCGI implementation looks cool, too; I'll definitely give it a look. TK On Thu, Apr 12, 2012 at 08:41:45AM -040

Re: [racket] My toy web app's performance: Racket vs Perl vs Ruby

2012-04-13 Thread joshua
I tested each against the invoice URL for the stats I included, but I've had similar results from the customer and product lists. It should be the same JSON data every time. I didn't want to post the actual URI for fear that my server would suddenly get pounded by an 'ab -c 20 -n 100' flood. C

Re: [racket] My toy web app's performance: Racket vs Perl vs Ruby

2012-04-12 Thread Jay McCarthy
I'm interested in the answers to the other questions posed, but additionally, I'd be curious what version of Racket you are using. I recently (in the last three-ish months) fixed a problem with concurrent requests. Jay On 4/11/12, jos...@anwu.org wrote: > > Racketeers, > > I'm new to the langua

Re: [racket] My toy web app's performance: Racket vs Perl vs Ruby

2012-04-12 Thread Neil Van Dyke
From a very quick skim of "calico.rkt", I saw some potential small optimizations (e.g., small copying and translation steps that could be eliminated), but nothing obviously huge. I assume that you're running "calico.rkt" from the command line when you do "ab", not running within DrRacket. My

Re: [racket] My toy web app's performance: Racket vs Perl vs Ruby

2012-04-12 Thread Ryan Culpepper
On 04/11/2012 03:03 PM, jos...@anwu.org wrote: Racketeers, I'm new to the language, and loving it. I'm having trouble getting good performance out of my little toy web app, however. I wrote this fake billing app to play with some new languages (like Racket) and some other webdev ideas I've ha

[racket] My toy web app's performance: Racket vs Perl vs Ruby

2012-04-11 Thread joshua
Racketeers, I'm new to the language, and loving it. I'm having trouble getting good performance out of my little toy web app, however. I wrote this fake billing app to play with some new languages (like Racket) and some other webdev ideas I've had (like client-side templating with jQuery and