Skip to content

ruian/Bintje

Repository files navigation

Bintje

Bintje

Build Status

PHP Benchmark

Small tool to make bench from portion of code

  • How to install it ?

    php5 composer.phar install

  • API

    Ruian\Benchmark\Bintje->start()
    //Start the process, initiate the timer
    //@return void
    Ruian\Benchmark\Bintje->stop()
    //Stop the process, make simple calcul with the start time and the end time
    //@return void
    Ruian\Benchmark\Bintje->add()
    //Add another timer and make the calcul of the previous bench
    //@return void
    Ruian\Benchmark\Bintje->wait()
    //Break the process, while endwait() is not launch
    //@return void
    Ruian\Benchmark\Bintje->endwait()
    //Continue the process after a wait call
    //@return void
    Ruian\Benchmark\Bintje->results()
    //When a bench is finished call this method to obtain results
    //@return array
    Ruian\Benchmark\Bintje->log($path)
    //Write your bench result into a file called bintje.log with the path you referrer
    //@return void

About

PHP Benchmark tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages