documentation and jsPerf comparison