Interesting¶
goto_page()
vs request()
¶
With the same end goal, request()
performs at least 20% faster.
However, if after using request()
you need to call render()
,
the resulting speed will be the same as if you had used goto_page()
from the start.
This is because the very first request in hand is intercepted and substituted when the browser makes the call. In other words, the response is instantaneous since it does not actually go to the server.
Note
In this example, the server’s response time is static and equals 400 ms.