No BSD License  

Highlights from
Benchmark clear() behavior with OOP handle

Be the first to rate this file! 0 Downloads (last 30 days) File Size: 1.77 KB File ID: #23132

Benchmark clear() behavior with OOP handle

by Benjamin Heasly

 

26 Feb 2009

Examine Matlab's "clear" behavior with different handle reference configurations.

| Watch this File

File Information
Description

Create N handle objects, store 1-3 references to each.

Order of object creation, number of references, and configuration of references all have drastic impact on "clear" time as function of number of objects. Times range from flat, to linear, to quadratic.

Using a simple handle class:
% % classdef simpleHandle < handle
% % properties
% % ref1;
% % ref2;
% % end
% % methods
% % function self = simpleHandel
% % end
% % end
% % end

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
oop Benjamin Heasly 27 Feb 2009 10:22:56
object Benjamin Heasly 27 Feb 2009 10:22:56
reference Benjamin Heasly 27 Feb 2009 10:22:56
handle Benjamin Heasly 27 Feb 2009 10:22:56
clear Benjamin Heasly 27 Feb 2009 10:22:56
performance Benjamin Heasly 27 Feb 2009 10:22:56
benchmark Benjamin Heasly 27 Feb 2009 10:22:56

Contact us at files@mathworks.com