3 ms·
the state of benchmarking by normal IT people is tragic. If one checks out his 'optimization problem statement' article [1] they can find: >ASCII: it’s okay to
by SleepyMyroslav 4y ago
the state of benchmarking by normal IT people is tragic. If one checks out his 'optimization problem statement' article [1] they can find:
>ASCII: it’s okay to only support ASCII
>Threading: it should run in a single thread on a single machine
>Stdlib: only use the language’s standard library functions.
This is truly 1978 all over again. No flame graphs, no hardware counters, no bottleneck analysis. Using these 'optimizations' for job interviews is questionable at best.
[1] https://benhoyt.com/writings/count-words/ https://benhoyt.com/writings/count-words/
- chakkepolja 4y agoStill better than obscure question from page 20 of Leetcode.
- benhoyt 4y agoI'm happy to be a "normal IT person". :-) If you look further at the count-words article you linked, I do have profiling graphs and bottleneck analysis. Note that the interview questions I ask are open-ended, not trying to trick or trap people into giving the "wrong" answer. I like to have more of a discussion to see how they think about the problem, what data structures they'd use, how they'd profile, and so on.
- SleepyMyroslav 4y agosry for late reply. I am glad that you are raising these topics regularly tbh. If more people stop write only coding and ask themselves questions you have asked it will be already big step forward. If they ask what profiling tools they should use it will be great. I did had a look into your article and I can not recommend limiting to tools you have used. I come from gamedev low level coding and performance analysis so I understand that my point of view is not normal xD