0.1.2 • Published 6 years ago

travis-benchmark v0.1.2

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

travis-benchmark

Generate json results for benchmark.js.

NPM Build Status

About

  • Dont work outside the travis environment.
  • Write results into file travisBuildId.json.
  • Other config same as in travis-json-git-log, but with build and job fields for additional benchmark info.

Example

var Benchmark = require('benchmark');
var tb = require('travis-benchmark');

var suite = new Benchmark.Suite('suiteName');
tb.wrapSuite(suite/*, callback, config*/);
.run({ 'async': true });

or

var Benchmark = require('benchmark');
var tb = require('travis-benchmark');
var tjgl = require('travis-json-git-log');

var suite = new Benchmark.Suite('suiteName');
suite.add('benchmarkName', function() {})
.on('complete', function(event) {
  var data = exports.parseSuite(event);
  tjgl.tjgl(
    _.extend({}, { data }, config),
    function(error, context, config) {}
  );
})
.run({ 'async': true });

Results

Result json file will contains:

  • build: number
  • job: number
  • platform: string
  • version: string
  • layout: string?
  • os: string
  • suite: string?
  • benchmark: string?
  • speed: number
  • distortion: number
  • sampled: number
  • percent: number
  • error?: string
0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago