...
Panel |
---|
// Before optimization // ------------------- Wiki Markup | NotifyPropertyChangedAttributeTest.SlowDownBecauseOfPropertyChangeEventsShouldBeLessThan250Percent : Failed
1375 \ [7\] INFO 100 000 changes without NotifyPropertyChanged: 125 milliseconds
1421 \ [7\] INFO 100 000 changes with NotifyPropertyChanged: 750 milliseconds
1421 \ [7\] INFO (!) *>>> 500% slower <<<* (!)INFO >>> 500% slower <<<
NUnit.Framework.AssertionException: Expected: less than or equal to 40.0d But was: 500.0d // After Optimization (remove use of reflection in aspect and remove OldValue / NewValue in aspect - use standard .NET 3.5 implementation) // ------------------ Wiki Markup | 828 \ [7\] INFO 100 000 changes without NotifyPropertyChanged: 140.625 milliseconds
875 \ [7\] INFO 100 000 changes with NotifyPropertyChanged: 187.5 milliseconds
875 \ [7\] INFO *>>> 33% slower <<<* ... 15x speedup :)
|
Actually it varies ~10-50%. Have no idea why it is slower / faster, probably some .NET or ReSharper pre-compiled bytecode tricks.
...