[njs] Added function micro benchmarks.