Performance improvement, merge not needed when modify local value

* also added perf test for gcounter