Django Toolbar gives different times when same template is loaded -


when using django debug toolbar, says page might load in 4000 ms. when reload page (with ctrl+f5 clear cache) says loads in 4400 ms -- or 3600 ms. there more accurate way benchmark load time? reason want optimize page load times , want make sure can see cause , effect clearly.

there variation in amount of time takes program anything--on typical computer there tens hundreds of processes simultaneously competing resources, exact load time vary depending on how else going on @ exact moment.

the best way benchmark not @ time take single page load, rather average time on bunch of loads. there many tools that--apache jmeter one.

you may want profiling app rather measuring overall load time--that identify bits of code called , contribute total time taken. guess-and-check optimizations more time consuming. see django docs or google "profiling django" many more resources.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -