03.06.2016, 09:33
The strcmp test isn't really sufficient since the speed depends on the number of commands you have.
Like, say you had 50 commands and you were calling the very last one. You would have executed 50 strcmp's just searching for the command! I think you should make this your test.
Like, say you had 50 commands and you were calling the very last one. You would have executed 50 strcmp's just searching for the command! I think you should make this your test.