UNPKG

service-perfmon-node

Version:
24 lines (17 loc) 1.12 kB
import { BenchmarkSuite } from 'pip-benchmark-node'; import { Parameter } from 'pip-benchmark-node'; import { AddMongoDbPerfMonBenchmark } from './AddMongoDbPerfMonBenchmark'; export class PerfMonBenchmarkSuite extends BenchmarkSuite { public constructor() { super("PerfMon", "PerfMon counters benchmark"); this.addParameter(new Parameter('InitialRecordNumber', 'Number of records at start', '0')); this.addParameter(new Parameter('SourceQuantity', 'Count of sources', '10')); this.addParameter(new Parameter('StartTime', 'Simulation start time', '2016-01-01T00:00:00.000Z')); this.addParameter(new Parameter('Interval', 'Simulation interval', '5000')); this.addParameter(new Parameter('MongoUri', 'MongoDB URI', null)); this.addParameter(new Parameter('MongoHost', 'MongoDB Hostname', 'localhost')); this.addParameter(new Parameter('MongoPort', 'MongoDB Port', '27017')); this.addParameter(new Parameter('MongoDb', 'MongoDB Database', 'benchmark')); this.addBenchmark(new AddMongoDbPerfMonBenchmark()); } }