Skip to content

CPU Usage Difference Between C++ and Python at the Same Execution Frequency (15 Hz) #1

@muse1835

Description

@muse1835

Hello everyone,

I’ve been working on a project where I’m comparing the performance and CPU usage of a C++ and Python application running at approximately the same execution frequency (around 15 Hz). My goal is to understand the CPU efficiency differences between these two languages.

What I observed:
Both applications perform the same set of operations at around 15 Hz.

I’m curious:

How much difference in CPU usage should I expect between C++ and Python at this frequency?
Are there any known factors that contribute to the CPU efficiency differences when executing applications written in these two languages at similar operational loads?
Does the choice of the interpreter or compiler optimizations (such as pythonic optimizations or compiler flags for C++) have a notable impact on this comparison?
I would really appreciate any insights, benchmarking data, or experiences you’ve had with similar comparisons.

Thank you in advance for your time and help!

Looking forward to hearing your thoughts and suggestions.

Let me know if you'd like any changes or if you have specific test cases and measurements to include!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions