Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 673969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:39:15+00:00 2026-05-14T00:39:15+00:00

How could I measure the time taken to load a page (with various different

  • 0

How could I measure the time taken to load a page (with various different PHP statements)?

Somewhat like the stats available here – http://talks.php.net/show/drupal08/24

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T00:39:15+00:00Added an answer on May 14, 2026 at 12:39 am

    The most simple too is Apache Bench (called ab), which is provided with Apache :

    • It’s a command-line tool
    • That can send many requests, in parallel, to and URL
    • And reports timings, errors, …

    Seems to fit the kind of very simple reporting that’s presented on your slide.

    (It does actually report more than that)

    If your needs ar ea bit more complex, [Siege][2] can be a good alternative.

    An interesting thing with Siege is that it can take a list of URLs from a file, instead of working with just one.

    An interesting thing with those tools is that you are not measuring only the time taken to execute a specific portion of code *(like you would if using [`microtime`][3] directly in your PHP code)*, but you’re getting the whole time that was required to serve the page.

    Also, it can benchmark more than just PHP code, as it’s working on the HTTP request, and not the code itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to measure the total time a page takes to fully load, from
I am performing the following in the makefile to measure the time taken in
Having not any answers to my previous questions about using javascript to measure page
Possible Duplicate: fast elapsed time on linux How can I measure how long a
I like being able to measure performance of the python functions I code, so
I am trying to calculate the measure time of html 5 video. I use
I need to build a windows forms application to measure the time it takes
I have a page that is taking 37 seconds to load. While it is
Possible Duplicate: How to measure time in milliseconds using ANSI C? How can I
I'm doing a study assignment to measure memory access time on my machine. To

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.