Python VS C in Speed

preview_player
Показать описание
This video is under the license of Creative Commons Attribution license (reuse allowed).

Welcome to AIP.
- The main focus of this channel is to publicize and promote existing SoTA AI research works presented in top conferences, removing barrier for people to access the cutting-edge AI research works.
- All videos are either taken from the public internet or the Creative Common licensed, which can be accessed via the link provided in the description.
- To avoid conflict of interest with the ongoing conferences, all videos are published at least 1 week after the main events. A takedown can be requested if it infringes your right via email.
- If you would like your presentation to be published on AIP, feel free to drop us an email.
- AI conferences covered include: NeurIPS (NIPS), AAAI, ICLR, ICML, ACL, NAACL, EMNLP, IJCAI

If you would like to support the channel, please join the membership:

Subscribe to the channel:

Donation:
w/ BEP20 (BTC, ETH, USDT, SOL, BNB, Doge, Shiba) ⇢ 0x0712795299bf00eee99f13b4cda0e19dc656bf2c

USDT (TRN20) ⇢ THV9dCnGfWtGeAiZEBZVWHw8JGdGCWC4Sh

The video is reposted for educational purposes and encourages involvement in the field of AI research.
Рекомендации по теме
Комментарии
Автор

You want to measure against the wall clock for actual time spent running the program. I got around 10 seconds for the C program and 11 seconds for the Python 3 programs. You can measure wall clock by using --verbose on the binary form of time (as opposed to the shell's built in time command). Yes, C is faster than pure Python, however, a lot of heavy Python libraries such as Pandas are built in C. This allows taking advantage of the easy to use nature of Python while having the speed of C. So, I suggest writing your algorithms in C (if they aren't already written by someone else), but build your data processing scripts in Python.

whatis
Автор

How much time does it takes to loop through a file(containing million numbers) and use an if statement for each item with another number in c and python.

Luckyy_Charms_
Автор

I wonder which will be the most used language in embedded AI in the future

WhileTrueThenDream
welcome to shbcf.ru