Skip to content

tshemsedinov/metatest

 
 

Repository files navigation

Performance testing library

TravisCI Codacy Badge bitHound

METATEST is a library for testing the execution time of functions and comparing functions by speed.

Features

  • Tests synchronous and asynchronous functions
  • Detects anomalies of testing and filters them out
  • Compares functions by execution time
  • Can run optimizing iterations before testing
  • Tests each function in a separate process
  • Test each function sequentially
  • Gets optimization status of test function

Speed test

metatest.speed(caption, fns, [, options])

  • caption - test caption
  • fns - array of test functions
  • options - test options(optional)
    • count - number of test iterations
    • startCount - number of first optimizing iterations
    • anomalyPercent - maximum possible percent of anomalies

Example:

metatest.speed('Benchmark example',
  [f1, f2, f3, [f4, f5]], {
    count: 250000,
    anomalyPercent: 5,
    startCount: 0
});
  • Synchronous test functions: f1, f2, f3
  • Asynchronous test functions(callback-last / err-first function): f4, f5

Contributors

About

Performance testing library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%