[I’m not sure whether this is the right SE community for this question. Apologies if not, please redirect me to the right one]
If we consider some basic operations/operators common to most programming languages:
-
arithmetic ones like
+
,-
,*
,/
,^
-
comparison like
==
,<
, and alsomax
,min
-
vector or matrix element selection
...[...]
,...(...)
how do they compare in terms of speed, in general?
I understand that a precise answer may depend on the specific programming language, but I’d be happy to hear about general considerations and examples for such a comparison. Cheers!