symphoner
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.3 • Public • Published

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

Package Sidebar

Install

npm i symphoner

Weekly Downloads

23

Version

1.0.0-alpha.3

License

MIT

Unpacked Size

169 kB

Total Files

66

Last publish

Collaborators

  • miguel.araco