Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinohashi/14b2565b69749faaf3991c8baf6f9889 to your computer and use it in GitHub Desktop.
Save kevinohashi/14b2565b69749faaf3991c8baf6f9889 to your computer and use it in GitHub Desktop.
Review SignalWordPress Hosting Performance Benchmarks Load Impact Test Script
http.page_start("Page 1 Blitz")
responses = http.request_batch({
{"GET", "<url>", auto_decompress=true, response_body_bytes=1024}
})
if responses[1].status_code == 200 then else log.debug("Status: " .. responses[1].status_code) end
result.custom_metric("StatusCode", responses[1].status_code)
result.custom_metric("TTFB-FirstRequest", responses[1].time_to_first_byte)
http.page_end("Page 1 Blitz")
client.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment