Advertisement
ScottHelme

JSON compression

Mar 28th, 2016
1,148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.84 KB | None | 0 0
  1. The raw JSON:
  2. { "csp-report": { "document-uri": "https://scotthelme.co.uk/wifi-pineapple-mark-v-introduction-setup/", "referrer": "", "violated-directive": "default-src https: 'unsafe-inline' 'unsafe-eval' https://scotthelme.co.uk", "effective-directive": "font-src", "original-policy": "default-src https: 'unsafe-inline' 'unsafe-eval' https://scotthelme.co.uk; report-uri https://report-uri.io/report/ScottHelme/reportOnly", "blocked-uri": "data", "status-code": 0 } }
  3.  
  4. Timing:
  5. Time for 10,000 rounds at compression level 0 for json1: 0.4820
  6. Time for 10,000 rounds at compression level 1 for json1: 0.2096
  7. Time for 10,000 rounds at compression level 2 for json1: 0.2071
  8. Time for 10,000 rounds at compression level 3 for json1: 0.2109
  9. Time for 10,000 rounds at compression level 4 for json1: 0.2249
  10. Time for 10,000 rounds at compression level 5 for json1: 0.2329
  11. Time for 10,000 rounds at compression level 6 for json1: 0.2259
  12. Time for 10,000 rounds at compression level 7 for json1: 0.2284
  13. Time for 10,000 rounds at compression level 8 for json1: 0.2296
  14. Time for 10,000 rounds at compression level 9 for json1: 0.2280
  15.  
  16. Compression levels:
  17. 0 - 530 - 541 - 102.07547169811%
  18. 1 - 530 - 250 - 47.169811320755%
  19. 2 - 530 - 250 - 47.169811320755%
  20. 3 - 530 - 250 - 47.169811320755%
  21. 4 - 530 - 247 - 46.603773584906%
  22. 5 - 530 - 247 - 46.603773584906%
  23. 6 - 530 - 247 - 46.603773584906%
  24. 7 - 530 - 247 - 46.603773584906%
  25. 8 - 530 - 247 - 46.603773584906%
  26. 9 - 530 - 247 - 46.603773584906%
  27.  
  28.  
  29. The raw JSON:
  30. { "csp-report": { "document-uri": "http://securityheaders.io/?q=http%3A%2F%2Fwww.impots.gouv.fr%2Fportal%2Fstatic%2F&hide=on", "referrer": "", "violated-directive": "script-src 'self' https://ajax.googleapis.com https://www.google-analytics.com https://bam.nr-data.net https://js-agent.newrelic.com https://cdnjs.cloudflare.com", "original-policy": "default-src 'self'; script-src 'self' https://ajax.googleapis.com https://www.google-analytics.com https://bam.nr-data.net https://js-agent.newrelic.com https://cdnjs.cloudflare.com; img-src 'self' https://www.google-analytics.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdnjs.cloudflare.com; font-src 'self' https://fonts.gstatic.com https://cdnjs.cloudflare.com; report-uri https://report-uri.io/report/ScottHelme", "blocked-uri": "http://js-agent.newrelic.com", "source-file": "http://securityheaders.io/js/nr.min.js", "line-number": 1 } }
  31.  
  32. Timing:
  33. Time for 10,000 rounds at compression level 0 for json2: 0.1144
  34. Time for 10,000 rounds at compression level 1 for json2: 0.2564
  35. Time for 10,000 rounds at compression level 2 for json2: 0.2719
  36. Time for 10,000 rounds at compression level 3 for json2: 0.3380
  37. Time for 10,000 rounds at compression level 4 for json2: 0.3259
  38. Time for 10,000 rounds at compression level 5 for json2: 0.3261
  39. Time for 10,000 rounds at compression level 6 for json2: 0.3398
  40. Time for 10,000 rounds at compression level 7 for json2: 0.3099
  41. Time for 10,000 rounds at compression level 8 for json2: 0.3151
  42. Time for 10,000 rounds at compression level 9 for json2: 0.3056
  43.  
  44. Compression levels:
  45. 0 - 997 - 1008 - 101.10330992979%
  46. 1 - 997 - 387 - 38.816449348044%
  47. 2 - 997 - 385 - 38.615847542628%
  48. 3 - 997 - 386 - 38.716148445336%
  49. 4 - 997 - 382 - 38.314944834504%
  50. 5 - 997 - 378 - 37.913741223671%
  51. 6 - 997 - 378 - 37.913741223671%
  52. 7 - 997 - 378 - 37.913741223671%
  53. 8 - 997 - 378 - 37.913741223671%
  54. 9 - 997 - 378 - 37.913741223671%
  55.  
  56.  
  57. The raw JSON:
  58. { "csp-report": { "blocked-uri": "self", "document-uri": "https://report-uri.io/home/faq/", "line-number": 1, "original-policy": "default-src https://report-uri.io; script-src https://report-uri.io https://ajax.googleapis.com https://maxcdn.bootstrapcdn.com https://js-agent.newrelic.com https://bam.nr-data.net https://cdnjs.cloudflare.com https://www.google-analytics.com https://platform.twitter.com https://cdn.datatables.net; style-src https://report-uri.io 'unsafe-inline' https://fonts.googleapis.com https://cdnjs.cloudflare.com https://maxcdn.bootstrapcdn.com; img-src https://report-uri.io data: https://www.google-analytics.com https://secure.gravatar.com https://cdnjs.cloudflare.com https://i1.wp.com https://www.gravatar.com; font-src https://report-uri.io https://fonts.googleapis.com https://fonts.gstatic.com https://cdnjs.cloudflare.com https://maxcdn.bootstrapcdn.com; connect-src https://report-uri.io; report-uri https://report-uri.io/report/ScottHelme/", "referrer": "", "script-sample": "fuckAdBlock = blockAdBlock = {\n ...", "source-file": "https://report-uri.io/home/faq/", "violated-directive": "script-src https://report-uri.io https://ajax.googleapis.com https://maxcdn.bootstrapcdn.com https://js-agent.newrelic.com https://bam.nr-data.net https://cdnjs.cloudflare.com https://www.google-analytics.com https://platform.twitter.com https://cdn.datatables.net" } }
  59.  
  60. Timing:
  61. Time for 10,000 rounds at compression level 0 for json3: 0.1328
  62. Time for 10,000 rounds at compression level 1 for json3: 0.2630
  63. Time for 10,000 rounds at compression level 2 for json3: 0.2642
  64. Time for 10,000 rounds at compression level 3 for json3: 0.2635
  65. Time for 10,000 rounds at compression level 4 for json3: 0.3434
  66. Time for 10,000 rounds at compression level 5 for json3: 0.3323
  67. Time for 10,000 rounds at compression level 6 for json3: 0.3438
  68. Time for 10,000 rounds at compression level 7 for json3: 0.3366
  69. Time for 10,000 rounds at compression level 8 for json3: 0.3934
  70. Time for 10,000 rounds at compression level 9 for json3: 0.3814
  71.  
  72. Compression levels:
  73. 0 - 1483 - 1494 - 100.74173971679%
  74. 1 - 1483 - 454 - 30.613621038436%
  75. 2 - 1483 - 442 - 29.804450438301%
  76. 3 - 1483 - 438 - 29.534726904922%
  77. 4 - 1483 - 435 - 29.332434254889%
  78. 5 - 1483 - 431 - 29.06271072151%
  79. 6 - 1483 - 431 - 29.06271072151%
  80. 7 - 1483 - 429 - 28.927848954821%
  81. 8 - 1483 - 429 - 28.927848954821%
  82. 9 - 1483 - 429 - 28.927848954821%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement