Some simple JavaScript benchmarking routines.