public override void Run() { PartitionedMemoryCacher<string> d = new PartitionedMemoryCacher<string>(CONCURRENCY_LEVEL, ARRAY_SIZE); for (int i = 0; i < 1000000; i++) { d.Add(i, "abc"); } string s = string.Empty; __sw.Reset(); __sw.Start(); Parallel.For(0, 1000000, i => d.Set(i, s)); __sw.Stop(); Console.WriteLine("Parallel Update PartitionedMemoryCacher: {0}", __sw.ElapsedTicks); }