Skip to content

MiguelAraCo/symphoner

Repository files navigation

Symphoner

Load/performance testing framework

Install

npm install symphoner

Usage

Read the framework's documentation.

Examples

Testing a REST API

const Symphoner = require( "symphoner" );
const time = require( "symphoner/time" );

const symphoner = new Symphoner( {
	statsd: {
	    host: "localhost",
	    port: 8125
	}
} );

symphoner.run( {
    phases: [
        {
            duration: time( 20 ).minutes,
            clients: 20,
            arrivalRate: time( 10 ).seconds
            scenarios: [
                {
                    distribution: 80, // %
                    action: "read-test.js"
                },
                {
                    distribution: 20, // %,
                    action: "write-test.js"
                }
            ]
        }
    ]
} );

License

MIT © Miguel Aragón, Rodolfo Aguirre

About

Load/performance testing framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published