WebPagetest Forums
Benckmarks - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: Benckmarks (/showthread.php?tid=13043)



Benckmarks - miquelangeld - 06-19-2014 12:38 AM

Hello, i'm trying to enable the benchmarks feature, but I'm missing something because it's not working. ┬┐it's possible to see a real one <benchmark>.php example? I have my benchmarks.txt. the php file must be named as the url that I try to get the benchmarks?.

Thanks!


RE: Benckmarks - pmeenan - 06-19-2014 04:28 AM

There are examples in the trun on github: https://github.com/WPO-Foundation/webpagetest/tree/master/www/settings/benchmarks/sample

That said, that code is still very much in development so don't be surprised if it doesn't do what you are looking for.


RE: Benckmarks - miquelangeld - 06-19-2014 04:40 PM

Thanks! Don't worry I think that it will be a great feature!. It's possible to launch the benchmark on demand? besides the schedule inside the php file configuration?
(06-19-2014 04:28 AM)pmeenan Wrote:  There are examples in the trun on github: https://github.com/WPO-Foundation/webpagetest/tree/master/www/settings/benchmarks/sample

That said, that code is still very much in development so don't be surprised if it doesn't do what you are looking for.



RE: Benckmarks - pmeenan - 06-19-2014 10:47 PM

Not really but it shouldn't be too hard to add.

benchmarks/cron.php?benchmark=<id> is the cron job that checks to see if it needs to be run and kicks it off if it does. Adding support for start=1 or something like that to bypass the schedule check and just start running shouldn't be more than 2-3 lines of code.