SlideShare ist ein Scribd-Unternehmen logo
1 von 40
Downloaden Sie, um offline zu lesen
cd /pub
                  cat beer > /dev/bluesmoon




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Not stuck in a cloud of volcanic ash




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Didn’t get sidetracked on my way here




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Didn’t go on an extended vacation




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Almost not allowed in




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Philip Tellis
          geek
          yahoo
          @bluesmoon
          http://bluesmoon.info/
          philip@bluesmoon.info




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Station wagons and Electrons

                     Philip Tellis / philip@bluesmoon.info


       Yahoo! London Pub Night – May 27, 2010 – Wallacespace




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Never underestimate the bandwidth of a station wagon
                     speeding down the motorway
                                            – Andrew S Tanenbaum?




Yahoo! London Pub Night – May 27, 2010 – Wallacespace    Station wagons and Electrons
Should you fly a 747 or a 737?



           A 747 seats 400+ passengers
           A 737 seats about 150
           Both take about the same time to fly from FRA to LHR
           A 747 takes longer to load and unload



   The best selling aircraft to date is the 737

   This analogy would have been much cooler if the Concorde still flew




Yahoo! London Pub Night – May 27, 2010 – Wallacespace         Station wagons and Electrons
Bandwidth and Latency




                     How much data can you transfer at once
                                       v/s
                     How quickly can you get your data across




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
But bandwidth is easy




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Shannon’s Theorem




                                                                  S
                                      C = B × log2 (1 +             )
                                                                  N



   C – Channel capacity in bps
   B – Bandwidth in Hz
   S – Signal strength
   N – Noise strength – S/N measured in dB




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Bandwidth can be bought




          Bandwidth has increased steadily over time
          Networks, hard drives, memory, CPU, system bus,
          everything.
          Bandwidth can be parallelised




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Diminishing returns

    The benefits of increased bandwidth diminish as you get fatter




    Ref: More bandwidth doesn’t matter (much) – Mike Belshe




Yahoo! London Pub Night – May 27, 2010 – Wallacespace         Station wagons and Electrons
How fast is the internet?

    YUI Blog measured bandwidth at 1Mbps and latency of 262ms




                                                              Ref: Analysing Bandwidth & Latency – YUI Blog




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Blink




 The average human eye takes 300-400ms
                to blink




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
How fast is the internet?




         Akamai measured average global bandwidth at 1.7Mbps




   Ref: State of the Internet – Akamai




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
ISPs




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
UK ISPs




    Keep in mind that the Internet latency from the UK to the US is 90-100ms




Yahoo! London Pub Night – May 27, 2010 – Wallacespace          Station wagons and Electrons
Latency – not so easy to sell




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Speed Limits




       3 × 108 m /s – in vacuum
       2 × 108 m /s – in fibre
        =⇒ 26.42ms × 2
       (roundtrip from BOS to LON)




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Round-trip



           It should take a packet around 53ms to go from Boston to
           London and back
           It actually takes around 90ms for a packet to go from
           Boston to London and back
           This is pretty good as far as approaching theoretical limits
           goes



   Ref: It’s the latency, stupid – Stuart Cheshire




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Round-trip



           It should take a packet around 53ms to go from Boston to
           London and back
           It actually takes around 90ms for a packet to go from
           Boston to London and back
           This is pretty good as far as approaching theoretical limits
           goes



   Ref: It’s the latency, stupid – Stuart Cheshire




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
But then again...




           Never underestimate the data-transfer capabilities of a
            Galaxy class starship travelling at Warp 9.875 and
            fitted with a computer that sounds like Majel Barett




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Latency isn’t sexy




       When was the last time you saw a TV commercial mention
                               latency?




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
ISPs




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
UK ISPs




    Keep in mind that the Internet latency from the UK to the US is 90-100ms




Yahoo! London Pub Night – May 27, 2010 – Wallacespace          Station wagons and Electrons
Latency v/s Bandwidth




          Improving latency tends to improve perceived bandwidth
          Improving bandwidth utilisation can potentially worsen
          latency
          Larger/complex packets take more time to assemble


   This is the difference between a 737 and a 747




Yahoo! London Pub Night – May 27, 2010 – Wallacespace         Station wagons and Electrons
Getting around latency problems




          Don’t add latency – It’s bad enough without us adding to it
          Caching – Bring the data closer to where it’s needed
          Parallelise – Reduce the number of serial roundtrips
          Predict – Get data before it’s needed




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
If you can, stuff everything into one call
                     Have a look at search.yahoo.com load up in firebug




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Parallelise where possible




          Downloading a script blocks page load, so do it in the
          background instead
          Browsers will download 4-8 resources from a host in
          parallel, take advantage of that




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Predict what’s next and fetch it



           If you know what the user will do next, pre-fetch it
                   Yahoo! Search page pre-loads sprites and Javascript for
                   the results page
                   Log analysis can tell you which pages are most popular,
                   and pre-fetch those




    Ref: Preload CSS & JS without execution – Stoyan Stefanov




 Yahoo! London Pub Night – May 27, 2010 – Wallacespace          Station wagons and Electrons
Measure your user’s bandwidth & latency




   Javascript code to measure your user’s bandwidth & latency
   http://bluesmoon.info/perf-tests/bw/bw-test-1.3.zip
   http://github.com/bluesmoon/netperf-js




   It’s what we used on the YUIBlog test




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Useful tools for performance analysis




          YSlow – Firefox/Firebug plugin from Yahoo!
          PageSpeed – Firefox/Firebug plugin from Google
          PageTest – Web page testing tool
          ShowSlow – Automated YSlow runs against your URL
          Fiddler – Web debugging Proxy




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Further reading




          developer.yahoo.com/performance – Yahoo!
          code.google.com/speed/page-speed/docs/rules_intro.html
          – Google
          slideshare.net/stoyan/the-business-of-performance –
          Stoyan Stefanov
          stevesouders.com/blog/ – Steve Souders
          phpied.com – Stoyan Stefanov




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Stay tuned...




                                     Coming this summer...
                                    to an interweb near you




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Stay tuned...




                                    BOOMERANG
                                                   2010 06 24
                               STARRING: JAVASCRIPT, APACHE, YAHOO
            SCRIPT: BLUESMOON, PRODUCTION: TOM CROUCHER, CHOREOGRAPHY: CROCKFORD
                                    http://developer.yahoo.net/blog




Yahoo! London Pub Night – May 27, 2010 – Wallacespace    Station wagons and Electrons
Photo credits



          flickr.com/photos/sully_aka__wstera2/4538240734/
          flickr.com/photos/gertcha/4168724489/
          flickr.com/photos/30720140@N08/4290289036/
          flickr.com/photos/dharmasphere/253277654/
          flickr.com/photos/gi/117771718/
          flickr.com/photos/siennaisalive/4436708323/
          flickr.com/photos/vlastula/300102949/
          flickr.com/photos/electrichamster/3160580687/
          flickr.com/photos/burnblue/308441464/




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Contact me




          Philip Tellis
          yahoo
          geek
          @bluesmoon
          http://bluesmoon.info/
          slideshare.net/bluesmoon
          philip@bluesmoon.info




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons
Thank you




Yahoo! London Pub Night – May 27, 2010 – Wallacespace   Station wagons and Electrons

Weitere ähnliche Inhalte

Mehr von Philip Tellis

Frontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonPhilip Tellis
 
Frontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonPhilip Tellis
 
Frontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonPhilip Tellis
 
RUM Distillation 101 -- Part I
RUM Distillation 101 -- Part IRUM Distillation 101 -- Part I
RUM Distillation 101 -- Part IPhilip Tellis
 
Improving 3rd Party Script Performance With IFrames
Improving 3rd Party Script Performance With IFramesImproving 3rd Party Script Performance With IFrames
Improving 3rd Party Script Performance With IFramesPhilip Tellis
 
Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"
Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"
Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"Philip Tellis
 
The Statistics of Web Performance Analysis
The Statistics of Web Performance AnalysisThe Statistics of Web Performance Analysis
The Statistics of Web Performance AnalysisPhilip Tellis
 
Abusing JavaScript to Measure Web Performance
Abusing JavaScript to Measure Web PerformanceAbusing JavaScript to Measure Web Performance
Abusing JavaScript to Measure Web PerformancePhilip Tellis
 
Analysing network characteristics with JavaScript
Analysing network characteristics with JavaScriptAnalysing network characteristics with JavaScript
Analysing network characteristics with JavaScriptPhilip Tellis
 
A Node.JS bag of goodies for analyzing Web Traffic
A Node.JS bag of goodies for analyzing Web TrafficA Node.JS bag of goodies for analyzing Web Traffic
A Node.JS bag of goodies for analyzing Web TrafficPhilip Tellis
 
Messing with JavaScript and the DOM to measure network characteristics
Messing with JavaScript and the DOM to measure network characteristicsMessing with JavaScript and the DOM to measure network characteristics
Messing with JavaScript and the DOM to measure network characteristicsPhilip Tellis
 
Boomerang: How fast do users think your site is?
Boomerang: How fast do users think your site is?Boomerang: How fast do users think your site is?
Boomerang: How fast do users think your site is?Philip Tellis
 
Boomerang at FOSS.IN/2010
Boomerang at FOSS.IN/2010Boomerang at FOSS.IN/2010
Boomerang at FOSS.IN/2010Philip Tellis
 
Measuring the web with Boomerang (YUIConf 2010)
Measuring the web with Boomerang (YUIConf 2010)Measuring the web with Boomerang (YUIConf 2010)
Measuring the web with Boomerang (YUIConf 2010)Philip Tellis
 
Boomerang at the Boston Web Performance meetup
Boomerang at the Boston Web Performance meetupBoomerang at the Boston Web Performance meetup
Boomerang at the Boston Web Performance meetupPhilip Tellis
 
Boomerang @ NY Web Perf meetup
Boomerang @ NY Web Perf meetupBoomerang @ NY Web Perf meetup
Boomerang @ NY Web Perf meetupPhilip Tellis
 

Mehr von Philip Tellis (20)

Frontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy Person
 
Frontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy Person
 
Frontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy Person
 
mmm... beacons
mmm... beaconsmmm... beacons
mmm... beacons
 
RUM Distillation 101 -- Part I
RUM Distillation 101 -- Part IRUM Distillation 101 -- Part I
RUM Distillation 101 -- Part I
 
Improving 3rd Party Script Performance With IFrames
Improving 3rd Party Script Performance With IFramesImproving 3rd Party Script Performance With IFrames
Improving 3rd Party Script Performance With IFrames
 
Extending Boomerang
Extending BoomerangExtending Boomerang
Extending Boomerang
 
Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"
Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"
Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"
 
The Statistics of Web Performance Analysis
The Statistics of Web Performance AnalysisThe Statistics of Web Performance Analysis
The Statistics of Web Performance Analysis
 
Abusing JavaScript to Measure Web Performance
Abusing JavaScript to Measure Web PerformanceAbusing JavaScript to Measure Web Performance
Abusing JavaScript to Measure Web Performance
 
Rum for Breakfast
Rum for BreakfastRum for Breakfast
Rum for Breakfast
 
Analysing network characteristics with JavaScript
Analysing network characteristics with JavaScriptAnalysing network characteristics with JavaScript
Analysing network characteristics with JavaScript
 
A Node.JS bag of goodies for analyzing Web Traffic
A Node.JS bag of goodies for analyzing Web TrafficA Node.JS bag of goodies for analyzing Web Traffic
A Node.JS bag of goodies for analyzing Web Traffic
 
Input sanitization
Input sanitizationInput sanitization
Input sanitization
 
Messing with JavaScript and the DOM to measure network characteristics
Messing with JavaScript and the DOM to measure network characteristicsMessing with JavaScript and the DOM to measure network characteristics
Messing with JavaScript and the DOM to measure network characteristics
 
Boomerang: How fast do users think your site is?
Boomerang: How fast do users think your site is?Boomerang: How fast do users think your site is?
Boomerang: How fast do users think your site is?
 
Boomerang at FOSS.IN/2010
Boomerang at FOSS.IN/2010Boomerang at FOSS.IN/2010
Boomerang at FOSS.IN/2010
 
Measuring the web with Boomerang (YUIConf 2010)
Measuring the web with Boomerang (YUIConf 2010)Measuring the web with Boomerang (YUIConf 2010)
Measuring the web with Boomerang (YUIConf 2010)
 
Boomerang at the Boston Web Performance meetup
Boomerang at the Boston Web Performance meetupBoomerang at the Boston Web Performance meetup
Boomerang at the Boston Web Performance meetup
 
Boomerang @ NY Web Perf meetup
Boomerang @ NY Web Perf meetupBoomerang @ NY Web Perf meetup
Boomerang @ NY Web Perf meetup
 

Kürzlich hochgeladen

Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 

Kürzlich hochgeladen (20)

Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 

Station-wagons and electrons

  • 1. cd /pub cat beer > /dev/bluesmoon Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 2. Not stuck in a cloud of volcanic ash Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 3. Didn’t get sidetracked on my way here Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 4. Didn’t go on an extended vacation Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 5. Almost not allowed in Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 6. Philip Tellis geek yahoo @bluesmoon http://bluesmoon.info/ philip@bluesmoon.info Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 7. Station wagons and Electrons Philip Tellis / philip@bluesmoon.info Yahoo! London Pub Night – May 27, 2010 – Wallacespace Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 8. Never underestimate the bandwidth of a station wagon speeding down the motorway – Andrew S Tanenbaum? Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 9. Should you fly a 747 or a 737? A 747 seats 400+ passengers A 737 seats about 150 Both take about the same time to fly from FRA to LHR A 747 takes longer to load and unload The best selling aircraft to date is the 737 This analogy would have been much cooler if the Concorde still flew Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 10. Bandwidth and Latency How much data can you transfer at once v/s How quickly can you get your data across Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 11. But bandwidth is easy Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 12. Shannon’s Theorem S C = B × log2 (1 + ) N C – Channel capacity in bps B – Bandwidth in Hz S – Signal strength N – Noise strength – S/N measured in dB Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 13. Bandwidth can be bought Bandwidth has increased steadily over time Networks, hard drives, memory, CPU, system bus, everything. Bandwidth can be parallelised Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 14. Diminishing returns The benefits of increased bandwidth diminish as you get fatter Ref: More bandwidth doesn’t matter (much) – Mike Belshe Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 15. How fast is the internet? YUI Blog measured bandwidth at 1Mbps and latency of 262ms Ref: Analysing Bandwidth & Latency – YUI Blog Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 16. Blink The average human eye takes 300-400ms to blink Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 17. How fast is the internet? Akamai measured average global bandwidth at 1.7Mbps Ref: State of the Internet – Akamai Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 18. ISPs Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 19. UK ISPs Keep in mind that the Internet latency from the UK to the US is 90-100ms Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 20. Latency – not so easy to sell Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 21. Speed Limits 3 × 108 m /s – in vacuum 2 × 108 m /s – in fibre =⇒ 26.42ms × 2 (roundtrip from BOS to LON) Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 22. Round-trip It should take a packet around 53ms to go from Boston to London and back It actually takes around 90ms for a packet to go from Boston to London and back This is pretty good as far as approaching theoretical limits goes Ref: It’s the latency, stupid – Stuart Cheshire Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 23. Round-trip It should take a packet around 53ms to go from Boston to London and back It actually takes around 90ms for a packet to go from Boston to London and back This is pretty good as far as approaching theoretical limits goes Ref: It’s the latency, stupid – Stuart Cheshire Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 24. But then again... Never underestimate the data-transfer capabilities of a Galaxy class starship travelling at Warp 9.875 and fitted with a computer that sounds like Majel Barett Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 25. Latency isn’t sexy When was the last time you saw a TV commercial mention latency? Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 26. ISPs Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 27. UK ISPs Keep in mind that the Internet latency from the UK to the US is 90-100ms Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 28. Latency v/s Bandwidth Improving latency tends to improve perceived bandwidth Improving bandwidth utilisation can potentially worsen latency Larger/complex packets take more time to assemble This is the difference between a 737 and a 747 Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 29. Getting around latency problems Don’t add latency – It’s bad enough without us adding to it Caching – Bring the data closer to where it’s needed Parallelise – Reduce the number of serial roundtrips Predict – Get data before it’s needed Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 30. If you can, stuff everything into one call Have a look at search.yahoo.com load up in firebug Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 31. Parallelise where possible Downloading a script blocks page load, so do it in the background instead Browsers will download 4-8 resources from a host in parallel, take advantage of that Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 32. Predict what’s next and fetch it If you know what the user will do next, pre-fetch it Yahoo! Search page pre-loads sprites and Javascript for the results page Log analysis can tell you which pages are most popular, and pre-fetch those Ref: Preload CSS & JS without execution – Stoyan Stefanov Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 33. Measure your user’s bandwidth & latency Javascript code to measure your user’s bandwidth & latency http://bluesmoon.info/perf-tests/bw/bw-test-1.3.zip http://github.com/bluesmoon/netperf-js It’s what we used on the YUIBlog test Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 34. Useful tools for performance analysis YSlow – Firefox/Firebug plugin from Yahoo! PageSpeed – Firefox/Firebug plugin from Google PageTest – Web page testing tool ShowSlow – Automated YSlow runs against your URL Fiddler – Web debugging Proxy Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 35. Further reading developer.yahoo.com/performance – Yahoo! code.google.com/speed/page-speed/docs/rules_intro.html – Google slideshare.net/stoyan/the-business-of-performance – Stoyan Stefanov stevesouders.com/blog/ – Steve Souders phpied.com – Stoyan Stefanov Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 36. Stay tuned... Coming this summer... to an interweb near you Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 37. Stay tuned... BOOMERANG 2010 06 24 STARRING: JAVASCRIPT, APACHE, YAHOO SCRIPT: BLUESMOON, PRODUCTION: TOM CROUCHER, CHOREOGRAPHY: CROCKFORD http://developer.yahoo.net/blog Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 38. Photo credits flickr.com/photos/sully_aka__wstera2/4538240734/ flickr.com/photos/gertcha/4168724489/ flickr.com/photos/30720140@N08/4290289036/ flickr.com/photos/dharmasphere/253277654/ flickr.com/photos/gi/117771718/ flickr.com/photos/siennaisalive/4436708323/ flickr.com/photos/vlastula/300102949/ flickr.com/photos/electrichamster/3160580687/ flickr.com/photos/burnblue/308441464/ Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 39. Contact me Philip Tellis yahoo geek @bluesmoon http://bluesmoon.info/ slideshare.net/bluesmoon philip@bluesmoon.info Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons
  • 40. Thank you Yahoo! London Pub Night – May 27, 2010 – Wallacespace Station wagons and Electrons