Monday, June 20, 2011

How to use Apache Benchmarking tool

Apache Benchmarking tool is used for doing load test for web applications.
Below is an example of using it :

ab -n 1000 -c 100 "http://ip:port/test"

-n - number of requests
-c - number of concurrency requests

Wednesday, June 8, 2011

Import a .js file in another js file

function inc(filename)
{
var body = document.getElementsByTagName('head')[0];
script = document.createElement('script');
script.src = filename;
script.type = 'text/javascript';
body.appendChild(script);
}

inc("jscripts/HelpWindow.js");
inc("jscripts/shortcut.js");