示例#1
0
        public void TimeGuidGenerator_Perf(int threadsCount)
        {
            const int totalIterationsCount = 64 * 1000 * 1000;
            var       sut = new TimeGuidGenerator(CreateNewTimestampGenerator());

            PerfMeasurement.Do("TimeGuidGenerator.NewGuid()", threadsCount, totalIterationsCount, () => sut.NewGuid());
        }
        public void PreciseTimestampGenerator_Perf(int threadsCount)
        {
            const int totalIterationsCount = 64 * 1000 * 1000;
            var       sut = CreateNewTimestampGenerator();

            PerfMeasurement.Do("PreciseTimestampGenerator.Now()", threadsCount, totalIterationsCount, () => sut.NowTicks());
        }