Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Certainly interesting, but not really useful IMO.

Instructions that are present very rarely might be executed far more frequently if they are within a loop, particularly a tight number-crunching loop.

I suspect that MOV instructions would still dominate but that you would see then "minorities" within the instruction set getting more representation in the stats.



Same goes for optimizations, where we assume 80% of the time is spent in 20% of the code.

We just finished profiling our 1M LOC C++ codebase and it shows even more extreme numbers; we hit close to 95% of the time spent in 5% of the code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: