cs50/check50

Showing stats for Time & Memory consumed

goyalyashpal opened this issue · 1 comments

Thanks a lot for such a wonderful package.

  • While doing Sentimental-Credit (credit in python) - I realised several scope of performance oriented improvements in how I can implement that. But not being an expert, I was just guessing about those.

  • Several competitive programming (CP) sites like Coding Ninja, Codeforces, Leetcode etc throw lots of test cases at the programs & measure the program against time required and i guess also on memory consumed.

  • Such a thing at much limited scope was also done in the Sort (x/*/labs/3) with time - but on the student side

So, having that kind of check for resource consumption in check50 will help students measure the efficiency of their code and make better - tangible statistics backed - decisions for choice of Data Structure & Algorithm (DSA) they used on the way.

This will also help in dealing with review of code of internal on-campus students. The cs50 staff would then be easily able to point to a particular tangible number.

Thanks again.

Ofcourse, the results of this performance score should not be barred or say should not be used to disqualify a submission. Rather, my main goal is just to help students track it for their own use - not for grading in the assesment.

The results of this will be shown in the same row. The name of result can be performace50 (ambiguous about which of higher/lower is better) or resource50 (highly ambiguous) or cost50 (best imo)
maybe smth like:

check50 -/- • style50 __ • performance50 -/- • __ comments

Currently it is as follows: