Skip to content

janklab/matlab-bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

matlab-bench

This is a small collection of utilities for exploring and learning about the behavior of the Matlab interpreter and IDE.

Each of the tools is in its own subdirectory from which it can be run.

This is the benchmark used in the "Is Matlab OOP slow?" Stack Overflow answer.

Caveats

The results of these tools are inherently system-dependent, on both your machine configuration and especially the computer hardware you're running. Be careful about extrapolating what you learn from them.

These tools are not intended for use in production code. The code in this project is not suitable for reuse. It does not define any stable or public APIs.

License

This software is released under the MIT License. See LICENSE.txt for details.

Quick Start

All the code can be run from within Matlab.

To benchmark the overhead of function and method calls:

addpath Mcode
bench_matlab_nops

Tools

  • bench_matlab_nops – Benchmarks the overhead of function calls and basic OO operations.
  • compareStringAndCharOps – Compare speed of equivalent operations on char and string arrays.

(All found in the Mcode/ folder.)

Author

Andrew Janke: [email protected], https://apjanke.net.

This is an independent project. It is not affiliated with The MathWorks, creators of Matlab.

This project is part of the Janklab suite of open-source libraries for Matlab.

About

Some utilities for exploring Matlab's behavior

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published