Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dan3460's avatar

PHP or C++ or something else

We are developing an application that analyzes a pretty good amount of data of production for several companies. We have a mysql database in the background. I'm using Laravel to display the data, graphs any updates that need to be made to the data set, etc. My question is on the crunching of the numbers and if it will be better to use a different language to it. The analysis is more reading adding and storing back to the database that actually doing big math on the data. My hunch is that the bottleneck is going to be with the database and creating a program in C++(or something else) to do crunching will not significantly improve performance compared to doing it in PHP. The crunching of the numbers is done in the background every certain amount of time. Any opinions or suggestions?

0 likes
1 reply
jlrdw's avatar

You could try with PHP first and see how long it takes.

But yes writing a C++ routine may work out for you.

Many large companies that deal with a bunch of data does use other languages to assist, such as C++.

I'd say experiment with both ways to see how it goes. You could even consider a stored procedure.

Please or to participate in this conversation.