+ 4

How to Check Efficiency of program's ?

2nd Feb 2019, 8:11 AM
The Shiva
The Shiva - avatar
3 Respuestas
+ 3
The efficiency of your code depends on the algorithm not on the size of your code. Identify the O(?) of your algorithm. Bubble sort is very small but very inefficient also.
3rd Feb 2019, 2:41 PM
Manuel Soto
Manuel Soto - avatar
+ 2
The best programs use smaller codes as possible to resolve big problems. If your code has a bunch of code, but only calculates the sum of prime numbers or somthing, when you can make it very small, then you can't consider it efficient. Also a good program uses pointers, which saves a lot of memory. But most important, it solves the problem at 100% percent, without limitations or something else.
2nd Feb 2019, 9:04 AM
Charlie S
Charlie S - avatar
+ 2
You can : * test it and show test coverage (do not try to trick this number, it is easy but it is useless) * do performance tests and show its limitations * check its quality with static analysis tools
2nd Feb 2019, 11:51 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar