This exmple draws N (where N is currently 1) random triangles per frame on a 500 x 500 canvas, at a frame rate determined by the requestAnimationFrame API.

The intented use case is to measure overhead compared to a native implementation of the same program.