Cisum Inas
Cisum Inas

Reputation: 12990

Variation in benchmarking Drupal with standard bartik theme

I am benchmarking a default Drupal 7.28 installation with no extra modules or themes. And I am curious why I get slightly different results using Firebug considering everything is local. Here are some results I get in milliseconds:

394
385
389
459
440
381

Does anyone know why the page load time varies locally?

Upvotes: 0

Views: 50

Answers (1)

Sebastian Zartner
Sebastian Zartner

Reputation: 20115

Benchmarks normally don't always give the exact same results when they are run multiple times.

The page load time is not only influenced by the network speed. The results are also influenced by multitasking or dynamic compilation optimizations.

The (local) server doesn't always return the response at exactly the same time as it needs to process the request while it's running in concurrency with other programs. The same counts for your browser.

Multitasking assigns different time slices to your program to simulate that the programs run in parallel, though they actually run in sequence. And these time slices are managed by the underlying OS and may vary.

Also the server as well as the browser may do some compilation/execution optimizations when a request is run multiple times in sequence.

Upvotes: 1

Related Questions