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 E0CB018024 for ; Wed, 2 Mar 2016 22:06:12 +0000 (UTC) Received: (qmail 50479 invoked by uid 500); 2 Mar 2016 22:06:12 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 50446 invoked by uid 500); 2 Mar 2016 22:06:12 -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 50432 invoked by uid 99); 2 Mar 2016 22:06:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2016 22:06:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1F8331A0047 for ; Wed, 2 Mar 2016 22:06:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.199 X-Spam-Level: * X-Spam-Status: No, score=1.199 tagged_above=-999 required=6.31 tests=[AC_DIV_BONANZA=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id E5SiG5rYEkFs for ; Wed, 2 Mar 2016 22:06:09 +0000 (UTC) Received: from mail-qg0-f52.google.com (mail-qg0-f52.google.com [209.85.192.52]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D25EB5F3F4 for ; Wed, 2 Mar 2016 22:06:08 +0000 (UTC) Received: by mail-qg0-f52.google.com with SMTP id y89so2658290qge.2 for ; Wed, 02 Mar 2016 14:06:08 -0800 (PST) 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; bh=54rjoSmFG3hyF0sd5+v6PFPkLh9Xqq8xnjGZPJ3hdro=; b=kBFS9kskfBeOtIftoIUawPe5SHD5Y6yY7Lti/d+kf91QxeDtmnCO7TQsUAQiaTL+xO +uraMrO14bSufDxD2bXWyafOCBky5q23TWJPVhbZgSaep04Qvk/AfxI1iAbRsWbuhMTG znAMOWMXAbF7y2YVG7voVCz/lKAfsOsY5v81Hsxrj5kB5s1sNeFvvEZ63I4F4PQ+4Ppr his/AbFVWatB1zYtJxMBpn/Jx0F9MGcxp3To5gZkDInZPXzFVC84V/Va9QKtNqlQ70GA PokUg8fLHcdrpxnO/YBIqCpwUL1qWL86bSC35P2+bxE+46TXDIEwYlEe4EZDRJSruF++ UO3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=54rjoSmFG3hyF0sd5+v6PFPkLh9Xqq8xnjGZPJ3hdro=; b=OT9zngswwRcrxatUqRvoVX/sfKgfqymcdiJc5/WVN7KvG7fiizuHDpRxhq03aZ0n90 /u3P1LEPrU/cAKnboqyen4+ip5qub8+zxdSs0epH5qu0/+cTpD83dVi2PzDmvpauhcL8 pu7loxs1lLOqwyR1z37K3YwtiwDcx5xkCXurHGi0bKiiiWUmDYih6FNKLVBVXeb1PJK/ dqWCaQMWL9z/voqVu/aBhwjMSutOfQtqMv7VMg3wntURu8nsOCU4sGREuviK/oKfg05l zsBXbnrh7+qbzWmp4LIy0vOuSnoknUleoXLhwxTLCFBqpB/GwDHgqvBG/kTRvf0N3QPn j2Zg== X-Gm-Message-State: AD7BkJIny6CegukQr0FdvR5dl3fJBsqJ7pBgnAN60PJN2Fq3XIXIpazzOVFK8/WVbQFtk9QJB91rDz3Go5axOg== MIME-Version: 1.0 X-Received: by 10.140.221.17 with SMTP id r17mr15154025qhb.61.1456956367858; Wed, 02 Mar 2016 14:06:07 -0800 (PST) Received: by 10.55.116.65 with HTTP; Wed, 2 Mar 2016 14:06:07 -0800 (PST) In-Reply-To: References: <56CB5A53.1090506@gmx.net> <56CC2C68.1090701@apache.org> <56CE4503.3030203@apache.org> Date: Wed, 2 Mar 2016 23:06:07 +0100 Message-ID: Subject: Re: About including Groovy From: Philippe Mouawad To: "dev@jmeter.apache.org" Content-Type: multipart/alternative; boundary=001a1138f268c27296052d1816ab --001a1138f268c27296052d1816ab Content-Type: text/plain; charset=UTF-8 Hello, For information , we had a vote on our twitter account: - https://twitter.com/apachejmeter/status/702590631571496961 Results are the following: Participation : 100 Votes - 9% NO - 91% YES This has no particular value except to give a kind of feeling about it. >From this discussion it appears we have a move towards including it. Unless there is a NOGO I will start bundling 2.4.6 groovy-all in jmeter tomorrow evening. Regards Philippe On Thu, Feb 25, 2016 at 3:53 AM, Vladimir Sitnikov < sitnikov.vladimir@gmail.com> wrote: > TL;DR: +1 for bundling proper groovy.jar with JMeter. > > Alternative approach would be some kind of "online store to download > JMeter plugins". I am not sure if that can be done in a reasonable > time frame though. > > In my opinion, there are number of advantages for bundling Groovy: > 1) I can easily get a "online groovy console", so I can easily check > if -3.abs() returns 3 or -3. That is exactly JMeter users have to do. > JMeter (as IDE) does not provide ability to execute small parts of > code, thus users have to use their minds (or Google or whatever) to > craft code that works. I claim using Groovy online console helps a > lot. With BeanShell you never know if your code will work until you > run it. > > groovyconsole.appspot.com just blows BeanShell out of the water. > > 2) "Groovy is in active development, thus everybody would have to > constantly update groovy.jar anyway" is not justified. > Even though there will be new groovy.jar releases, it is unlikely > users will use cutting-edge features of Groovy language in JMeter > scenarios. > > I think the main usage would be just regular boilerplate code, so > non-experts would never be able to write Groovy code that requires the > latest groovy.jar to execute. > > 3) Even though I prefer not to use Groovy, I see no better replacement > for glue code in JMeter's samplers. In fact, it could even make sense > to add a menu entry like "create groovy samlper". That way users could > access it without secret knowledge of what JSR223 means. > > 4) Groovy's Java interop is much better designed from language point > of view than the one of JavaScript. I mean it is just much easier to > call java libraries since that was considered by Groovy language > designers. This somewhat rules out JavaScript. BeanShell is too > verbose and it does not seem to be the right tool as a glue language. > > As a Java programmer, I'm much more fluent in "Groovy+groovyconsole" > than in "BeanShell+no_way_to_validate_snippet". > I'm fluent in JavaScript, yet it does not help me to answer "how to > read/write a file". Rhino/Nashorn have java interop, yet it is not in > my active vocabulary, thus I would prefer groovy. > > 5) It is a bit hard to pick the proper groovy jar. > > 6) At the end of the day, "valid java code is valid Groovy code" > > 7) Having Groovy in JMeter would add nice "backward compatibility" > feature. Suppose JMeter 3.0 includes Groovy. Then load scripts would > work in exactly the same way for all the users of JMeter 3.0. If > everybody downloads his/her own version of Groovy, that would easily > result in "JMeter script broken for unknown reason" or even "wrong > results due to newer/incompatible groovy.jar version". > > > sebb> The only advantage I can see is that JMeter users don't have to > sebb> download Groovy in order to use it. > > That is huge advantage. > Current http://groovy-lang.org/download.html is not designed for > downloading a single jar file. > "apache-groovy-binary...zip" is 35MiB zip file with lots of jars > inside. Technically speaking, 52 of them start with "groovy-" > I do not want to learn/read which groovy jar I need. I just want to > make JMeter work. > > Milamber>2/ Why Beanshell is including in JMeter and not Groovy? > > I think it might be a good time to deprecate BeanShell. Not in a sense > "remove it in the subsequent release", but in order to clean up menus, > etc, etc. One never has excessive screen space, so removing BeanShell > menus seems wise from my point of view. > > > sebb> This adds aboiut 5% to the total jar size. > > That is OK from my point of view. > > Current apache-jmeter-2.13.zip includes: > 1) Lots of javadocs (docs/api). 46MiB when unzipped. That is more than > 50% of the JMeter (82MiB is the net volume of unzipped JMeter 2.13). > If removing docs/api, the zip file takes 5MiB less. I'm not sure > javadocs need be the part of regular JMeter binary zip. > > 2) Current docs/images/screenshots takes 12MiB. It can likely be fit > under 5MiB (~save 10MiB) if crunched through a png optimizer. > > Vladimir > -- Cordialement. Philippe Mouawad. --001a1138f268c27296052d1816ab--