Upgrade to Pro — share decks privately, control downloads, hide ads and more …

happiness.pptx.pdf

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →

 happiness.pptx.pdf

Avatar for Almudena Vivanco

Almudena Vivanco

December 13, 2018

Other Decks in Technology

Transcript

  1. import random import time import requests class Speaker(object): def __init__(self):

    born = "Avilés - Asturias" studies = "Applied Maths and Computability" jobdescription = "Performance Jedi" company = "Telefónica I+D" team = "NIJI" project = "TUENTI" talks = [VLC Testing, DevopsDays, WebPerfDays, Velocity] def talk(self): start_timer = time.time() r = requests.get('http://www.slideshare.net/almudenavivanco') r.raw.read() latency = time.time() - start_timer self.custom_timers[‘ExpoQA’'] = latency if __name__ == '__main__': speech = Speaker() speech.talk() print trans.custom_timers Almudena Vivanco (@MrsDaehin)
  2. Fear is the path to the dark side. Fear leads

    to Inertia. Inertia Leads to paralysis. Paralysis leads to going out of Business.
  3. Vista Waterfall Una vez ejecutado veremos Sin Cache de Browser

    Con Cache de Browser Golden Performance Rules
  4. Analytical Review Parameters Localización Browser Velocidad de Conexión Número de

    test a ejecutar ( coger un número Impar ;) ) First View and Repeat View ( Cache!!! ) Document Complete vs OnLoad Ignorar Errores SSL Capturar tcpdump User Agent ad Hoc Custom Headers What shall we Measure?
  5. SPOF y Block Block simulates a not found error 404

    while SPOF or single point of failure simulates a timeout from a given domnain. this tool is useful to measure the impact of an error or to measure the impact of a failure of certain assets like advertisements or trackers, css, wof …. on the other hand , resilience to connectivity issues, if we want to measure SLA of a third party integration or a shard domain conection problem we would use SPOF to simulate how our site will load when there are assets or domains in timeout error. This is useful with ad bulk services or trackers.
  6. t = acceptable response time satisfied = response time <

    t tolerating = t < response time > 4t frustrated = response time > 4t Apdex [t] = (satisfied + tolerating/2)/total requests
  7. …

  8. Analyzing the waterfall Weight in KB of the initial html

    Rendering starting time connections or sockets opened against a given domain number of redirections in use socket for a given resource blocking tcp
  9. Custom Metrics [iframe-count] return document.getElementsByTagName("iframe").length; [script-tag-count] return document.getElementsByTagName("script").length; [meta-viewport] var

    viewport = undefined; var metaTags=document.getElementsByTagName("meta"); for (var i = 0; i < metaTags.length; i++) { if (metaTags[i].getAttribute("name") == "viewport") { viewport = metaTags[i].getAttribute("content"); break; } } return viewport NO se pueden añadir operaciones asincronas :( Timers, Ajax requests etc ...