Skip to content Skip to sidebar Skip to footer
Showing posts with the label Benchmarking

Why Are __getitem__(key) And Get(key) Significantly Slower Than [key]?

It was my understanding that brackets were nothing more than a wrapper for __getitem__. Here is ho… Read more Why Are __getitem__(key) And Get(key) Significantly Slower Than [key]?

Optimize A "mask" Function In Matlab

For a benchmark comparison, I consider the simple function: function dealiasing2d(where_dealiased, … Read more Optimize A "mask" Function In Matlab

Why Is Local Variable Access Faster Than Class Member Access In Python?

While trying to tackle a more complex problem, I came to compare access speed to local variable vs … Read more Why Is Local Variable Access Faster Than Class Member Access In Python?