Optimizing Program Performance
QuoteWe are all tasked to balance and optimize ourselves.
by Mae Jemison
5.1 - 5.12 visit book
5.13 - 5.19 visit here
test
code directory: ./code
test way:
- assert means assert function from
<assert.h>
- output means to watch code output to judge if it works right
solution | code file | test way |
---|---|---|
5.13 | 5.13.c | assert |
5.14 | 5.14.c | assert |
5.15 | 5.15.c | assert |
5.16 | 5.16.c | assert |
5.17 | 5.17.c | assert |
5.18 | 5.18.c | assert |
5.19 | 5.19.c | assert |
prof
prerequisite
- google gperftools
to 5.18 & 5.19, you can measure its performance.
(cd chapter5/code; make 5.18.prof)
(cd chapter5/code; make 5.18.prof)
当前内容版权归 DreamAndDead 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 DreamAndDead .