Return-Path: X-Original-To: apmail-jmeter-dev-archive@minotaur.apache.org Delivered-To: apmail-jmeter-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD93410C30 for ; Sat, 29 Aug 2015 22:40:45 +0000 (UTC) Received: (qmail 55968 invoked by uid 500); 29 Aug 2015 22:40:45 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 55934 invoked by uid 500); 29 Aug 2015 22:40:45 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 55922 invoked by uid 99); 29 Aug 2015 22:40:45 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Aug 2015 22:40:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A1B62EF80B for ; Sat, 29 Aug 2015 22:40:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.099 X-Spam-Level: X-Spam-Status: No, score=-0.099 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id mxH6gfIkqtO4 for ; Sat, 29 Aug 2015 22:40:32 +0000 (UTC) Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 777FB205E9 for ; Sat, 29 Aug 2015 22:40:32 +0000 (UTC) Received: by ioej130 with SMTP id j130so43504580ioe.3 for ; Sat, 29 Aug 2015 15:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ybwKGQz94nd45oU2Dsr5H54mwtYlU2nvx1fUi0TQ5/I=; b=H2rPNKSup0ieAywNHGxbl+0VH8xve+kGOr2bmw/004ThDU7VvBWO+92vleDmAZeyBU qUBuOyqtb2v+863DoQQDh8YE6wY1Yi6IRl6J2AgtQH//VfSUoE0dGfCfRUmK7KyNIs0V vbzYRtczHn+b4qxjsmlDUKApu/8BIcrhYOk1twYep3FcBu4s3b2+pbVTPAIxW6We3HBQ Pa+GSrCnx9Wj6gYoEbXsIZ2td1XC456D2Xz9eML9p1B4pwifPaz62gWKiOgV9a/nuulZ wzzjcJi8tIDptstIznaWzV4Lhc9LEvsFyiCZXZMQFj0Vzn1FpLUDjmxfyuDSHNURzftQ CTyA== MIME-Version: 1.0 X-Received: by 10.107.136.157 with SMTP id s29mr4480420ioi.34.1440888031855; Sat, 29 Aug 2015 15:40:31 -0700 (PDT) Received: by 10.107.135.136 with HTTP; Sat, 29 Aug 2015 15:40:31 -0700 (PDT) In-Reply-To: References: Date: Sat, 29 Aug 2015 23:40:31 +0100 Message-ID: Subject: Re: JSR223 elements performance From: sebb To: dev@jmeter.apache.org Content-Type: text/plain; charset=UTF-8 The various scripting test elements were originally added as a way for people to prototype code easily. There was no expectation that they would be used in production testing; it was thought that people would convert them to Java if they proved useful. Scripting languages have improved in performance since then, so it starts to make sense to use them more. However, that must not be at the expense of the ability to use them for prototyping. By all means, let's improve the performance, but this needs to be done in a compatible way. On 29 August 2015 at 23:31, Vladimir Sitnikov wrote: >>This way, you could say that behaviour seems awkward ( for now I share your > view). > > It makes sense. > >> you also mentionned nashhorn , do you mean that you used jmeter with it ? > > I do not use jsr223 often. > This thread appeared when I was trying to benchmark several JSR223 > engines and realized JMeter penalizes Nashorn and other engines that > take time to initialize global scope. > >>Javascript performances are awful compared to groovy, did you make some > comparison ? > > I do not have numbers on the top of my head. > > Nashorn is way faster than Rhino. > For instance, it performs comparable to V8 (Chrome's engine) in "react > render" benchmark: > https://github.com/maximenajim/java-vs-node-react-rendering-microbenchmark > > Vladimir