I am planning to create a network measurement tool in 3G networks. I am just thinking in which language I should code- C or Python. Personally I love python, but i also feel that it is a bit slow and since i need to record the timestamps of packet sent and received and i need them to be as precise as possible(as soon as server has some packet to send, it should send and as soon as receiver receives a packet,the application should note the time stamp) , should I use Python or use C?
Share
Your time is the most valuable, so code in whatever language you feel most comfortable. Python is slower than C in most cases, but on modern hardware it is still very fast. If you go the Python route, write your program, then use a profiler to figure out if you have a particular section slowing you down. If you can streamline it enough to meet your timing needs, great. If not, you can always write a function or class in C and link it in using swig.