Skip to content

Instantly share code, notes, and snippets.

@shoghicp
Last active August 29, 2015 13:56
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 shoghicp/9111131 to your computer and use it in GitHub Desktop.
Save shoghicp/9111131 to your computer and use it in GitHub Desktop.

This test shows the difference of sending 16x16 full chunks on the server when using no compression, or using different deflate levels.

Settings:

  • enable-advanced-cache=off
  • max-chunks-per-second=7

The max sending speed is bound by the max-chunks-per-second setting. This test doesn't measures the time used to decompress and parse the chunks by the client. The send time measures the time taken to send all the chunks (send packets, receive ACK, resend lost packets).

DEFLATE level UP kB/s CPU usage send time
none 358 0.02 58s
-1 57 0.02 9s
-2 50 0.03 9s
-3 41 0.03 9s
-6 33 0.02 8s
-9 33 0.06 6s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment