86

GitHub - drish/ben: Your benchmark assistant, written in Go.

 6 years ago
source link: https://github.com/drish/ben
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

68747470733a2f2f7261776769742e636f6d2f64726973682f62656e2f6d61737465722f6173736574732f62656e2e706e67

Ben (beta)

Your benchmark assistant, written in Go.


Ben is a simple tool that helps you run your benchmarks on multiple hardware specs, clouds and runtime versions, so that you can easily compare you results against different environments.

Install

With go get

$ go get https://github.com/drish/ben/cmd/ben

or with curl

curl -sf https://raw.githubusercontent.com/drish/ben/master/install.sh | sh

Requirements

  • Docker 17.03.0-ce+

Supported clouds

Quick Start

Add a ben.json file in the root of your project.

{
  "environments": [
    {
      "runtime": "ruby",
      "version": "2.3",
      "machine": "local",
      "before": ["gem install benchmark-ips"],
      "command": "ruby bench.rb"
    },
    {
      "runtime": "ruby",
      "version": "2.5",
      "machine": "local",
      "before": ["gem install benchmark-ips"],
      "command": "ruby bench.rb"
    }
  ]
}

Then, in the root of your project run.

$ ben

After all benchmarks are done, a benchmarks.md file will be generated.

Checkout examples folder for more.


68747470733a2f2f7261776769742e636f6d2f64726973682f62656e2f6d61737465722f6173736574732f64656d6f2e676966

More docs

License

MIT © Carlos Derich


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK