trying to fix performance test - will have to rewrite using process.nextTick()