I think Octave is much more slower than Matlab. Especially, if you have many looping in the program. Matlab is faster because of the JIT (just in time) architecture.
I guess most of the guys down here has provided a basic comparison between to the 2 softwares. To add on to their answer…I would like to mention about Simulink which is exclusive to matlab only.Moreover in a lot of packages like control system package Matlab provides an easy way to calculate certain parameters from graph unlike in Octave where we have to write code to obtain the same. Matlab also provides a lot of support packages and toolboxes unlike Octave.
But you know what….Octave is free and thats its biggest advantage.
So now to answer your question….if you need a software to run some graphs and do maths without in depth functioning capabilities go for Octave else Matlab.
Have a look at https://en.wikibooks.org/wiki/MATLAB_Programming/Differences_between_Octave_and_MATLAB#:~:text=Both%20MATLAB%20and%20Octave%20have,control%20from%20the%20Octave%20prompt.