Skip to content
Advertisement

Tag: performance

Handling hundreds of API requests in one time

I am trying to make a user dashboard which will generate reports of all of my 37 game accounts played by different gamers. so, for each i scrape data and then calculate the amount of rewards it generated. but for that i need to do hundreds of api requests and due to max_exec_time limit of 30sec it gives me a

How to see full query in New Relic

When I go to APM > Applications > PHP Application > Databases it shows the list of queries and their performance. But the queries are shown like

select. How can I see the full query?…

Why is PHP7 so much faster than Python3 in executing this simple loop?

As an extremely simple benchmark, I executed the below simple code on PHP 7.0.19-1 and Python 3.5.3 (command line) on the same Raspberry Pi 3 model B. Python’s execution time was horrible in comparison to PHP’s (74 seconds vs 1.4 seconds). Can anyone help me understand why the execution takes so much longer on Python? Is there something I’m doing

Which is faster php date functions or carbon?

Carbon is simple PHP API extension for DateTime. I want to know that we can use datetime functions using by installing carbon via composer. which is faster php datetime functions or carbon ? Answer I did some testing regarding your comment comparing DateTime to Carbon functions: Calling Carbon::now() vs. new DateTime() 100.000 times: Results from 5 runs (meaning 5x 100.000

How to compress image before uploading in Laravel?

I’m making a images gallery website where users can upload any image and they will be displayed on frontend. I need to compress images without effecting it’s quality to reduce there size so that page load speed should not effect that much. I’m using following code to upload image: Answer You need to optimize the image for web usage as

Advertisement