Londonchiropracter.com

This domain is available to be leased

Menu
Menu

Python sucks in terms of energy efficiency — literally

Posted on November 24, 2021 by admin

Python is one of the most popular programming languages in the world. Dutch software company’s programming language index for 2021 also indicates that.

But is it one of the most energy-efficient coding languages out there? Not really. A study from researchers of Universidade do Minho, Portugal (first spotted by hackaday) says that Python is just better than Perl in terms of energy consumed while performing certain tasks. It notes that C tops the chart followed by Rust, C++, and Ada.

Researchers used 10 popular algorithms from the Computer Language Benchmarks Game (CLBG), to measure the energy consumption, runtime, and memory usage of 27 well-known coding languages. You can check out the results in the table below:

Comparing energy consumption, time, and memory used by different programming languages
Comparing energy consumption, time, and memory used by different programming languages

It’s pretty clear that Python performs poorly in terms of time and memory.

Now you might argue that this study is from 2017, and a lot has changed since then, you’re right. So the researchers have published another study with updated tests and results earlier this year. Spoiler alert: Python still performs poorly.

In these extended tests, researchers established a co-relation between DRAM energy consumption, peak memory, and total memory used during the execution.

The team also performed a set of standard algorithms along with a few tests from Rosetta Code, a site to compare different programming languages’ execution of common algorithms. You can check out the tables below; Python is mostly in the bottom half of rankings when it comes to energy consumption. It couldn’t even complete the Fibonacci task in 24 hours of the cut-off time.

So it’s evident that languages like Python, Perl, and Ruby are not really energy efficient. On the other hand, C, C++, and Rust are some of the greenest languages of the lot.

You can read more about the study and the method used to evaluate this result here.

Source

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Europe is pouring tens of billions of public money into VC. The hard part is making it work
  • Nvidia’s Huang warns DeepSeek running on Huawei chips would be ‘horrible’ for the US
  • Anthropic’s Amodei meets Wiles and Bessent at the White House in first step toward resolving Mythos standoff
  • Palantir, Thales, and a startup are competing to build the FAA’s predictive air traffic AI
  • Cursor is raising $2 billion at a $50 billion valuation as AI coding tools become the fastest-growing software category

Recent Comments

    Archives

    • April 2026
    • March 2026
    • February 2026
    • January 2026
    • December 2025
    • September 2025
    • August 2025
    • July 2025
    • June 2025
    • May 2025
    • April 2025
    • March 2025
    • February 2025
    • January 2025
    • December 2024
    • November 2024
    • October 2024
    • September 2024
    • August 2024
    • July 2024
    • June 2024
    • May 2024
    • April 2024
    • March 2024
    • February 2024
    • January 2024
    • December 2023
    • November 2023
    • October 2023
    • September 2023
    • August 2023
    • July 2023
    • June 2023
    • May 2023
    • April 2023
    • March 2023
    • February 2023
    • January 2023
    • December 2022
    • November 2022
    • October 2022
    • September 2022
    • August 2022
    • July 2022
    • June 2022
    • May 2022
    • April 2022
    • March 2022
    • February 2022
    • January 2022
    • December 2021
    • November 2021
    • October 2021
    • September 2021
    • August 2021
    • July 2021
    • June 2021
    • May 2021
    • April 2021
    • March 2021
    • February 2021
    • January 2021
    • December 2020
    • November 2020
    • October 2020

    Categories

    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    ©2026 Londonchiropracter.com | Design: Newspaperly WordPress Theme