Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala speed test and profiler

I'm interested in speed test and performance of my application. For example how much time was spent to db query (I use squeryl ORM).

Are there any plugins for Intellij-Idea IDE?

like image 760
Pavel Varchenko Avatar asked Jun 12 '13 11:06

Pavel Varchenko


2 Answers

If you are looking for plugins for Intellij-IDEA, then the YourKit profiler can be integrated into this IDE. YourKit profilers might be difficult to use to measure the exact time in a specific part of code.

You should consider using a microbenchmarking framework such as ScalaMeter for this. In this framework you write tests similar to unit tests, that can be run selectively to verify that the performance hasn't changed. It can be neatly integrated with SBT -- you can run it as a test.

like image 58
axel22 Avatar answered Oct 27 '22 23:10

axel22


Since Scala runs in JVM how about jvisualvm , although not an intellij plugin : http://docs.oracle.com/javase/6/docs/technotes/tools/share/jvisualvm.html

like image 34
blue-sky Avatar answered Oct 27 '22 21:10

blue-sky