Skip to main content
This is lesson 10 of 11 in this module Course 84% complete

Demo: Benchmarking Disposable Objects

Premium Content

Sign in with your account or sign up to access this lesson.

The lesson runs a benchmark comparing non-disposable objects whose stopwatch is stopped by the finalizer against disposable objects whose stopwatch is stopped in the Dispose call, showing that an explicit dispose reduces average object lifetime from about 650 milliseconds to under one millisecond.