added perftest for moments
Merge pull request #2830 from mlyashko:moments