1月 252015
 

Firefox 35 was released this week and became the first browser to enable support for the HTTP/2 protocol by default.

The HTTP/2 specification has not been finalised so Firefox actually enabled the Draft 14 version of HTTP/2 but little is expected to change in the final draft. Google is now supporting HTTP/2 draft 14 on its web servers alongside the SPDY protocol giving us a chance to compare the performance of raw HTTPS, SPDY and HTTP/2 on the same web page.

We also updated HttpWatch this week so that it supports HTTP/2 within Firefox. It has new columns to display information about the protocols being used by each request:

New HTTP/2 Columns

The Performance Comparison

The performance test used HttpWatch with Firefox to run a series of simple page load tests against the Google UK home page using the three protocols:

  • Raw HTTPS
  • SPDY/3.1
  • HTTP/2

We switched between the protocols by enabling and disabling the following entries in Firefox’s about:config page:

Controlling FIrefox Protocol Support

Each test was performed in a fresh instance of Firefox with an empty browser cache. Although this testing was simplistic and only used a simple page it does highlight some important differences between the protocols.
Continue reading »

12月 192012
 

1.重要的就是RAM,对应到参数设置,就是要设置合理的Maxclients值,避免进程运行在swap里。

2.HostnameLookups 要设置为Off,避免处理每次请求前还要查询dns

3.避免使用SymLinksIfOwnerMatch,即除非必要,一般最好全部设置成FollowSumLinks

Options FollowSymLinks

4.避免使用AllowOverride,即除非必要,则最好全部设置为None Continue reading »