Skip to main content
This is lesson 10 of 11 in this module 10/11

Demo: Benchmarking Disposable Objects

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.

Video lesson

Want to watch this lesson?

This lesson is part of the study plan. Get instant access to all lectures, labs and practice exams.

Get the Study Plan