Am 24.10.2017 um 15:55 schrieb Artur Tarassow:
Am 24.10.2017 um 15:38 schrieb Sven Schreiber:
> Yes, it is an interesting comparison in any case. Maybe Matlab is
> doing some just-in-time compilation, don't know.
True, JIT might be one reason.
Perhaps you can do a test with the JIT switched off explicitly (never
done that myself though):
https://undocumentedmatlab.com/blog/undocumented-feature-function
Quoting:
"feature(‘accel’,’on/off’) – see here and here. There is also a related
feature(‘JIT’,’on/off’) which appears to control a subset of
feature(‘accel’)."
BTW, recent Matlab versions might be even faster...
cheers,
sven