Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Performance & Testing Framework

 
German Gonzalez-Morris
Ranch Hand
Posts: 264
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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 ?

Regards,

Germán
 
Kenneth A. Kousen
gunslinger & author
Ranch Hand
Posts: 100
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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, https://github.com/kousen/Making-Java-Groovy for examples. Chapter 6 is the testing chapter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic