using benchmark.js and phantomjs to evaluate the performance