Skip to content

alno/sbt-caliper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SBT Caliper Plugin

SBT plugin to support Caliper benchmark execution. Uses test sources for benchmarking.

Build Status

Usage

Add to plugins.sbt file:

addSbtPlugin("com.github.alno" % "sbt-caliper" % "0.1-SNAPSHOT")

Put your benchmarks in src/test/scala. Benchmark classes should have names ending with Benchmark and extend Caliper Benchmark class.

Run benchmark task.

Examples

Simplest example:

import com.google.caliper.SimpleBenchmark

class ExampleBenchmark extends SimpleBenchmark {

  def timeSomeAction(reps: Int) {
    for (i <- 1 to reps)
      SimpleObj.longOperation
  }

}

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Contributors

See https://github.com/alno/sbt-caliper/graphs/contributors

License

chef-base

About

Sbt plugin to execute Caliper benchmarks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages