Snazzy JavaScript with the help of a modern Browser

Do We actually have a real feel for “fast” in the context of our JavaScript and Browsers? Do we know what do we mean by “fast”, in this context? When for example someone suggests doing something in HTML+JavaScript? How do you quantify that in the terms of speed? Well…

Snazzy Java Script + Flot
Snazzy Java Script + Flot

To help us understand how fast is fast , in here I can “reveal” that I have made one very short JavaScript example that is using Flot™ library and jQuery™.

http://jsfiddle.net/dbjdbj/4B2Gd/

Click on that link above you will see one near-time example, of continuous data set production and it’s repeated re-draw-ing. The “jittering” axes are automatically scaled. I think for scripting language this is pretty damn fast.
And once more here is the amazingly short piece of JavaScript behind, that I have written as a POC1. Calculate two data sets, and then just redraw using them. (Rinse and) Repeat.

 

Enjoy…


1. POC is Proof Of Concept