Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 206271FBF226 for ; Tue, 27 Dec 2011 17:10:21 -0400 (AST) Received: from toroondcbmts07-srv.bellnexxia.net ([207.236.237.41]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RfeHs-0007az-Hu for pgsql-performance@postgresql.org; Tue, 27 Dec 2011 21:10:21 +0000 Received: from toip58-bus.srvr.bell.ca ([67.69.240.185]) by toroondcbmts07-srv.bellnexxia.net (InterMail vM.8.00.01.00 201-2244-105-20090324) with ESMTP id <20111227211002.OMOQ13538.toroondcbmts07-srv.bellnexxia.net@toip58-bus.srvr.bell.ca> for ; Tue, 27 Dec 2011 16:10:02 -0500 Received: from toip52-bus.srvr.bell.ca ([67.69.240.55]) by toip58-bus.srvr.bell.ca with ESMTP; 27 Dec 2011 16:09:52 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak4JAPct+k5GMVNi/2dsb2JhbABCqw6BOoEFgXMBBQgyTAMCBhAUJRkaJAEBBBsDvHKIdYI3YwSIN4R5AQGNP4xj Received: from unknown (HELO CAPRICA) ([70.49.83.98]) by toip52-bus.srvr.bell.ca with ESMTP; 27 Dec 2011 16:09:52 -0500 From: "Carlo Stonebanks" To: References: <4BFE8F4F0200002500031BA2@gw.wicourts.gov> In-Reply-To: <4BFE8F4F0200002500031BA2@gw.wicourts.gov> Subject: Performance costs of various PL languages Date: Tue, 27 Dec 2011 16:09:50 -0500 Message-ID: <295DF03C1B134B0BBD05A8F54D985C76@CAPRICA> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acr92w62IQ501yQSSfOeCdMO0DP+DXG/I85A X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17609 X-Pg-Spam-Score: 0.8 (/) X-Archive-Number: 201112/182 X-Sequence-Number: 45981 We are currently using pltclu as our PL of choice AFTER plpgSql. I'd like to know if anyone can comment on the performance costs of the various PL languages BESIDES C. For example, does pltclu instantiate faster than pltcl (presumably because it uses a shared interpreter?) Is Perl more lightweight? I know that everything depends on context - what you are doing with it, e.g. choose Tcl for string handling vs. Perl for number crunching - but for those who know about this, is there a clear performance advantage for any of the various PL languages - and if so, is it a difference so big to be worth switching? I ask this because I had expected to see pl/pgsql as a clear winner in terms of performance over pltclu, but my initial test showed the opposite. I know this may be an apples vs oranges problem and I will test further, but if anyone has any advice or insight, I would appreciate it so I can tailor my tests accordingly. Thanks, Carlo