'How to test a Laravel project for duration of requests

In a headless Laravel project we use unit and feature test.

The unit and feature tests checks the input and output of the requests and the methodes but they won't check the duration of the requests, methods or queries.

What is the best approach in Laravel for testing the duration of the requests or methods with millions of records in the database?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source