File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Groovy and the fly likes Performance & Testing Framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Performance & Testing Framework" Watch "Performance & Testing Framework" New topic

Performance & Testing Framework

German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 232


is Groovy notoriously more expensive than a simple OS batch ?
I understand that running over a JVM it will have an overhead, but is it acceptable ?

Another question is regarding to testing framework.
Does it have Junit or any other testing tool ?


Kenneth A. Kousen
gunslinger & author
Ranch Hand

Joined: Sep 18, 2002
Posts: 99
The cost of a Groovy script is starting up the JVM. Once that's done, however, it's as fast as anything else.

You can implement JUnit tests in Groovy, or you can use Spock, which is a testing library that uses Groovy. Check out the source code repo for my book, for examples. Chapter 6 is the testing chapter.

Kenneth A. Kousen, Ph.D. (assorted certs), President, Kousen IT, Inc.
Author of Making Java Groovy -
I agree. Here's the link:
subject: Performance & Testing Framework
It's not a secret anymore!