JMeter is what you are looking for!
It has good original documentation - http://jmeter.apache.org/ and a lot of other sourses, like this
JMeter could be run from command line, it names non gui-mode
JMeter supports Javascript, Groovy, Java, Beanshell languages
And of course it could generate graphs