Wednesday, June 3, 2015

HTTP/2 (and H2O) improves user experience over HTTP/1.1 or SPDY

HTTP/2 is expected to offer better user experience than HTTP/1.1, the unanswered question is how much the benefit is in practice.

Tonight I have given a presentation regarding the issue, showing HTTP/2 performance of H2O HTTP server at shibuya.pm, a popular technology meetup at Tokyo. This blog post is a summary of the presentation at the meetup, following my recent blog post about the prioritization logic of HTTP/2 and web browser implementations.

Test Scenario:
  • a modified version of http2rulez.com (<script> tags moved into <head>)
    • contains 5 CSS files
    • 8 script files in <head>, including a minified version of jquery.js
    • contains 18 not-blocking assets (e.g. images files), both small and large
  • client: Chrome/43 and Firefox/38
  • server: Nginx/1.9.1 and H2O/HEAD
  • network: dedicated virtual network to avoid noise; 100ms latency (typical for 4G mobile) added artificially using tc disc command

Benchmark Results:


Analysis:

When using H2O (and HTTP/2) with optimal settings, the first-paint times are reduced by about 30% when compared to HTTP/1.1 or SPDY/3.1.

First-paint time is a good index of user experience; it shows the timing when the user sees the page being rendered for the first time (or when all assets that block rendering arrives at the client side) since he/she triggered the navigation.

The improvements are due to the fact that Firefox (or Chrome with H2O's http2-reprioritize-blocking-assets configuration directive set to ON) downloads assets files that block rendering (e.g. CSS or JS files) before other asset files (e.g. images).

Conclusion:

With the benchmark showing 30% reduction in first-paint time, it is obvious that HTTP/2 (implemented by H2O) is offering superior performance against the protocols of previous generations. However, implementations might not be mature enough to offer such boost in performance (as discussed in recent blog post, Chrome has issues with its prioritization logic which is worked around by the configuration directive of H2O; Nginx does not prioritize the streams even though such feature is available in SPDY).

For the time being it is suggested that users conduct benchmarks to see if their applications actually become faster, or consult the developers of the HTTP servers for benchmark results.

Or, you can use H2O, which has been hereby shown to provide good performance under the described scenario :-)


PS. The presentation slides used at the meetup is available here:

40 comments:

  1. In your blog I was happy to see your article, better than last time, and have made great progress, I am very pleased. I am looking forward to your article will become better and better.
    agario skins | mahjong connect | minecraft games |pac man | geometry dash lite | sniper games |halloween | game

    ReplyDelete
    Replies
    1. saat ini kebutuhan akan priduk bahan bangunan sangat meningkat pesat yang didukung dengan program pemerintah
      dalam pembangunan infrastruktur negara. Dengan program ini maka pembangunan di setiap lini terutama di bagian pinggiran menjadi
      prioritas dalam pembangunan. Pembangunan ifrastuktur ini sangat berpengaruh terhadap harga bahan bangunan di daerah pinggiran
      seperti di daerah papua yang mana dahulu disana harga semen bisa mencapai 800 ribu sampai dengan 1 juta sekarang sudah turun dan setara
      dengan daerah lainnya.

      Geliat pembangunan infrastruktur ini juga berimbas pada toko bahan bangunan online
      yang mana banyak sekali permintaan dari
      para kontraktor untuk proyek yang mereka kerjakan. Produk material bangunan yang mengalami peningkatan saat ini seperti produk
      atap dan genteng, produk ventilator, bata ringan dan lain sebagainya.

      Delete
  2. - Chúng tôi chuyên cung cấp đèn pha led , đèn led , đèn led siêu sáng, đèn led chiếu sáng, đèn pha led, đèn led , đèn led siêu sáng, đèn led chiếu sáng giá rẻ, chất lượng cao, bảo hành 24 tháng trên toàn quốc. Khi khách hang có nhu cầu mua hang trên toàn quốc.
    - Đồng thời chúng tôi còn là nhà cung cấp các loại nguyên liệu mỹ phẩm thiên nhiên như: bơ cacao, bơ ca cao, nguyên liệu mỹ phẩm handmade nguyên chất, cao cấp chất lượng có nhiều công dụng trong việc dưỡng da dành cho khách hàng, được đông đảo chị em phụ nữ ưa chuộng và sử dụng để săn sóc sắc đẹp của mình.
    - Nếu khách hàng còn gặp nhiều khó khăn trong việc chăm sóc sắc đẹp thì sản phẩm bơ hạt mỡ, bo hat mo, shea butter, nguyên liệu mỹ phẩm handmade nguyên chất từ tự nhiên có nhiều công dụng trong việc làm mềm mịn làn da, xóa tan vết thâm nám, đẩy lùi mụn cảm và triệt để xóa nhăn. Hãy cùng chúng tôi chăm sóc sắc đẹp của bạn, chỉ có bạn mới có thể tự chăm sóc cho bạn than của mình.
    - Sản phẩm tiếp theo mà chúng tôi sẽ giới thiệu cho các bạn đó là: bơ đậu phộng, bo dau phong , bơ đậu phộng ăn với gì, bơ đậu phộng bán ở đâu thơm ngon, cao cấp chất lượng có nhiều công dụng trong việc dưỡng da dành cho khách hàng, được đông đảo chị em phụ nữ ưa chuộng và sử dụng để săn sóc sắc đẹp của mình.
    - Ngoài ra chúng tôi còn là nhà cung cấp dịch vụ ăn uống khắp toàn quốc, đặc biệt là đặc sản cơm niêu, cơm niêu sài gòn, cơm niêu vũng tàu được đông đảo khách du lịch ưa chuộng và là điểm đến khi có nhu cầu ăn uống những món ăn ngon.
    - Và cuối cùng là một trong những dòng sản phẩm nhập khẩu cao cấp nhạp trực tiếp từ Úc và Mỹ: bột yến mạch, bot yen mach , yến mạch, yến mạch giảm cân thơm ngon, cao cấp chất lượng có nhiều công dụng trong việc dưỡng da dành cho khách hàng, được đông đảo chị em phụ nữ ưa chuộng và sử dụng để săn sóc sắc đẹp của mình.

    ReplyDelete
  3. Want to know regular updates of Euro Cup 2016????
    Get Euro Cup live Streaming,Euro Cup 2016 Schedule,Euro Cup 2016 Fixture,Euro Cup 2016 Live Streaming,Euro Cup 2016 Live Stream,Euro Cup 2016 Live Score.
    Venue-France,From 10th june-10july. 24 teams,10 stadiums. Stay updated.

    ReplyDelete
  4. The blog or and best that is extremely useful to keep I can share the ideas
    of the future as this is really what I was looking for, I am very comfortable and pleased to come here. Thank you very much.
    wings io| earn to die 6
    earn to die 5| happy wheels
    |Red Ball | duck life

    ReplyDelete
  5. Thanks for the best blog.it was very useful for me.keep sharing such ideas in the future as well.this was actually what i was looking for,and i am glad to came here!
    kids games free | games games | shooting games | tank games | apple shooter | stick war 2 | unblocked games

    ReplyDelete
  6. This is the game so players feel very fierce , adventurous . You try to join and play this game , you will feel great like.
    | tank trouble | learn to fly
    gun mayhem | can your pet
    | happ wheels

    ReplyDelete
  7. The blog or and best that is extremely useful to keep I can share the ideas of the future as this is really what I was looking for, I am very comfortable and pleased to come here. Thank you very much.
    animal jam | five nights at freddy's | hotmail login

    ReplyDelete
  8. To make yourselves available FNAF Friv Friv Games Thank you both for sharing Holy Mass with us each day Friv Games Twizl Juegos De FNAF when we were called out late at night and any other time and for your support and encouragement in every respect. Friv 2021 Twizl Juegos Yepi Juegos Twizl Thank you for sharing with me a few of your ideas regarding the possibility.

    ReplyDelete
  9. Danke, dafur dass Ihr jeden Tag mit uns die Hl. Messe gefeiert habt, fur all die Reparaturen im ganzen Haus Jeux De Friv Jogos Friv Jogos Friv fur Euere Bereitschaft Juegos Friv Juegos Friv Juegos De Friv immer zur Verfugung zu stehen Juegos Geometry Dash Juegos Twizl Twizy Twizl Danke, dass Sie Ihr Muhen um den Aufbau des Leibes Christi mit uns teilten.

    ReplyDelete
  10. Senhor Deputado Cashman, agradeço-lhe a informação. Juegos Friv Jogos Friv Friv4school A todos que partilham e trabalham sob estas mesmas convicções e princípios Jeux De Friv Juegos De Roblox Zoxy Mais uma vez, obrigada ao Parlamento por comungar da visão que informa a nova política dos consumidores Juegos Kizi Juegos Yepi Twizl Zoxy assente no mercado - a visão de um mercado de consumidores informados e capacitados que procuram e usufruem, com confiança,

    ReplyDelete
  11. Wir danken Ihnen Friv4school 2018 Gry Friv 2 Gry Friv 5 dass Sie diese Hoffnung mit uns teilen und diesen Schritt auf dem Pilgerweg des Vertrauens Gry Friv Juegos Friv 100 Juegos Friv 1000 mit uns gegangen sind. Juegos Friv 5 Juegos De Friv 2 Juegos Friv 250 Juegos Yepi wir danken Ihnen für das Interesse an unseren Produkten und hoffe

    ReplyDelete
  12. دار السلام اهم شركة نقل عفش بالطائف وكذلك اهم شركة نقل عفش بمكة وجدة والمدينة المنورة تقوم الشركة بنقل العفش بحفر الباطن وتبوك وجازان وتقوم بنقل الاثاث بالقصيم
    شركة نقل عفش بالطائف
    شركة نقل عفش بالمدينة المنورة
    شركة نقل عفش بجازان وابها

    ReplyDelete
  13. Get best At&t Email support services in USA by calling 1-877-363-0097 toll-free number for At&t email Technical Support Number, At&t email support number.

    ReplyDelete
  14. Become a professional sales executive and distribution manager by pursuing high-quality SAP SD certification training course from talent magnifier. Take a demo class free in Talent Magnifier.
    visit us -Website

    ReplyDelete
  15. prześcignąć konkurencję z tych sztuczek Friv 2018 Jogos Friv Gry Friv napisał w Gry Gry Friv Jogos Friv Gry Friv Gry Friv Pobierz demo gry przed zakupem Friv4school 2018 Gry Friv Gry Friv Podgląd gry może pomóc zobaczyć, jeśli chcesz kupić pełną wersję, czy nie

    ReplyDelete
  16. Join VBA Macros Training in Delhiin Talent Magnifier with 100% job placement assistance.
    Intrested candidate can Contact Us @ https://www.talentmagnifier.com/vba-macros-training-course/

    ReplyDelete
  17. DIAL +1(844)443-2544 THIS IS FREE GMAIL SUPPORT PHONE NUMBER TO FIX ANY ERROR OR ISSUE IN GMAIL BY DIAL THIS 1844-443-2544 GOOGLE ACCOUNT HELPLINE SUPPORT PHONE NUMBER CALL ANY TIME 24*7 AND GET INSTANT SOLLUTION FOR ANY GOOGLE PROBLEM.

    ReplyDelete
  18. Car Insurance gives financial protection against physical damage and bodily injury. We are providing car insurance to all over the New York. Car Insurance

    ReplyDelete
  19. Talent Magnifier is a leading Certification Courses in HR for Freshers. We provide corporate training with Live Practicals in All Modules?

    ReplyDelete
  20. Thank you for sharing the article! Glad to find the post!
    celebrity net worth

    ReplyDelete
  21. Expect Talent Magnifier's Basic Computer Training Courses For Freshers -Enroll Now - Free Demo Classes.
    For more info - Click Here

    ReplyDelete
  22. Contact +1(888) 963-7228 HP Laptop Support Phone Number for get HP Help United states. If you perspective errors like software installation, configuration, Troubleshooting then you can solve the issues remotely by the Technician.

    ReplyDelete
  23. An aspiring candidate who wants to learn excel can visit Talent Magnifier for the Excel Courses in Delhi. Here you will get the training to have the advanced level of excellence in MS Excel.For more details visit us @ http://bit.ly/2wumdN3

    ReplyDelete
  24. Webroot.com/safe is a protection software solution that communicates with the cloud avoiding the hassle to manage the signature updates to deploy. for office setup visit office.com/setup

    ReplyDelete
  25. This is a great blog. Thanks for mentioning.
    I am also very happy to be able to show some of my work. Hope you will also visit and learn my website
    Friv 1

    ReplyDelete

Note: Only a member of this blog may post a comment.