 The aim of the talk is how do you benchmark JavaScript functions? To be specific, I wanted to measure the performance of our charts, how much time do the take to render. So the basic to measure this performance is to measure the performance of a function. I'm trying to use Benchmark.js, which basically takes this function you want to test. You add it to a Benchmark suit and run it. And it gives you, it uses the precision timers of the browser and gives you accurate results how much time does a function take to execute. How do I leverage this functionality and run it to measure the performance of a chart? So first of all, the syntax of Benchmark.js is pretty difficult to get. So what I've done is, since Jasmine is very user friendly, I've overwrote the prototype of Jasmine to create a Benchmark test case. So after you overwrite this, this is how simple the test case would look. Can you open jspec.js? So it is pretty simple. You write the describe block, aid block, and just the function you want to measure. So I'll show you the test case that we have created. So basically, I want to test a bar chart of fusion charts, which has three data points. So I write a describe, aid block, and in the function, I create the chart and then render it. I've created one more test case which uses 40 data points. So the thing with measuring performance is it needs to be in real browsers. Otherwise, it doesn't make sense to the customers also to, if we want to display our numbers, it should be on real browsers. So I execute these test cases on real browsers. I've used Karma, which basically creates a socket with the browser and executes these benchmark test cases and gets you the results. So in the Karma config file, I include all the source files that are required for the test, and then I specify the browsers over here. So I specify the test need to run on Firefox and Chrome. I can even connect to a remote browser like BrowserStack or SourceLabs. If you see, you'll have to use one of these BS underscore Firefox Mac to connect to a BrowserStack browser. So quick demo. So the product we named it as Bencho. So it actually runs these charts on real browsers and gets you the results. So can you reduce, can you minimize it? So the resolution messed it up, but it'll... If you see, it'll say it took the first test case, it took these many seconds in Chrome, these many seconds in Firefox, the second test case, these many seconds in Chrome, these many seconds in Firefox, and clearly you can see the Chrome is a better browser in terms of performance. That's it.