# Performance Comparison Study between OpenFHE C++ and Python Interfaces

**URL:** <https://openfhe.discourse.group/t/performance-comparison-study-between-openfhe-c-and-python-interfaces/1831>\
**Category:** Library Questions\
**Tags:** questions\
**Created:** [January 13, 2025, 2:17am UTC](https://openfhe.discourse.group/t/performance-comparison-study-between-openfhe-c-and-python-interfaces/1831 "2025-01-13T02:17:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@David](https://openfhe.discourse.group/u/David)\
**Post date:** [January 13, 2025, 2:17am UTC](https://openfhe.discourse.group/t/performance-comparison-study-between-openfhe-c-and-python-interfaces/1831/1 "2025-01-13T02:17:04Z")

</div>

I would like to inquire about the performance difference between using the C++ version of openfhe-development and the Python version (openfhe-python) on the same machine. Specifically, I am interested to know if there have been any experiments or benchmark tests comparing their runtime performance. If so, by how much does the Python interface slow things down compared to the C++ version? Any data or insights you could provide would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![dsuponitskiy-duality](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dsuponitskiy-duality](https://openfhe.discourse.group/u/dsuponitskiy-duality)\
**Post date:** [January 13, 2025, 4:19pm UTC](https://openfhe.discourse.group/t/performance-comparison-study-between-openfhe-c-and-python-interfaces/1831/2 "2025-01-13T16:19:33Z")

</div>

We ran some tests last year, and the performance difference was negligible, especially considering the complexity of the OpenFHE code. I do not recall the exact numbers, but the overhead primarily depends on the conversion of C++ data types to Python types and vice versa.
