{
 "limit_mib": 128,
 "docker": "--memory=128m --memory-swap=128m --memory-swappiness=0, как у тестера",
 "metric": "anon из memory.stat контейнера: память процесса без страничного кэша",
 "variants": {
  "solution": [],
  "whole-body": [
   "chunk = self.rfile.read(self.body_left)"
  ],
  "whole-file": [
   "self.wfile.write(source.read())"
  ],
  "gzip-in-memory": [
   "compressed = io.BytesIO()"
  ]
 },
 "scenarios": [
  {
   "id": "post",
   "variant": "solution",
   "method": "POST",
   "size": 200278016,
   "gzip": false,
   "response": "HTTP/1.1 200 OK",
   "seconds": 4.7,
   "killed": false,
   "exit_code": null,
   "peak_mib": 11.8,
   "samples": [
    [
     0.19,
     9.0,
     11.8
    ],
    [
     0.43,
     21.0,
     11.8
    ],
    [
     0.67,
     32.0,
     11.8
    ],
    [
     0.91,
     44.0,
     11.8
    ],
    [
     1.14,
     55.0,
     11.8
    ],
    [
     1.38,
     67.0,
     11.8
    ],
    [
     1.63,
     79.0,
     11.8
    ],
    [
     1.88,
     91.0,
     11.8
    ],
    [
     2.12,
     103.0,
     11.8
    ],
    [
     2.36,
     115.0,
     11.8
    ],
    [
     2.61,
     127.0,
     11.8
    ],
    [
     2.87,
     139.0,
     11.8
    ],
    [
     3.11,
     151.0,
     11.8
    ],
    [
     3.34,
     162.0,
     11.8
    ],
    [
     3.57,
     174.0,
     11.8
    ],
    [
     3.83,
     186.0,
     11.8
    ],
    [
     4.07,
     191.0,
     11.8
    ],
    [
     4.31,
     191.0,
     11.8
    ],
    [
     4.54,
     191.0,
     11.8
    ]
   ]
  },
  {
   "id": "post",
   "variant": "whole-body",
   "method": "POST",
   "size": 200278016,
   "gzip": false,
   "response": "обрыв: ConnectionAbortedError",
   "seconds": 3.2,
   "killed": true,
   "exit_code": 137,
   "peak_mib": 124.8,
   "samples": [
    [
     0.19,
     9.0,
     19.8
    ],
    [
     0.42,
     20.0,
     31.8
    ],
    [
     0.64,
     31.0,
     42.3
    ],
    [
     0.89,
     43.0,
     53.8
    ],
    [
     1.12,
     54.0,
     65.8
    ],
    [
     1.38,
     67.0,
     78.0
    ],
    [
     1.63,
     79.0,
     90.8
    ],
    [
     1.87,
     91.0,
     102.0
    ],
    [
     2.1,
     102.0,
     113.8
    ],
    [
     2.34,
     114.0,
     124.8
    ]
   ]
  },
  {
   "id": "get",
   "variant": "solution",
   "method": "GET",
   "size": 167772160,
   "gzip": false,
   "response": "HTTP/1.1 200 OK",
   "content_length": 167772160,
   "received": 167772160,
   "payload": 167772160,
   "seconds": 5.3,
   "killed": false,
   "exit_code": null,
   "peak_mib": 11.8,
   "samples": [
    [
     0.17,
     4.6,
     11.8
    ],
    [
     0.41,
     14.0,
     11.8
    ],
    [
     0.66,
     23.3,
     11.8
    ],
    [
     0.88,
     31.9,
     11.8
    ],
    [
     1.11,
     40.5,
     11.8
    ],
    [
     1.35,
     49.1,
     11.8
    ],
    [
     1.6,
     59.1,
     11.8
    ],
    [
     1.83,
     66.9,
     11.8
    ],
    [
     2.05,
     75.5,
     11.8
    ],
    [
     2.29,
     84.9,
     11.8
    ],
    [
     2.53,
     94.3,
     11.8
    ],
    [
     2.76,
     102.7,
     11.8
    ],
    [
     3.01,
     111.6,
     11.8
    ],
    [
     3.26,
     121.0,
     11.8
    ],
    [
     3.49,
     129.6,
     11.8
    ],
    [
     3.73,
     138.2,
     11.8
    ],
    [
     3.96,
     146.8,
     11.8
    ],
    [
     4.19,
     156.1,
     11.8
    ],
    [
     4.43,
     160.0,
     11.8
    ],
    [
     4.65,
     160.0,
     11.8
    ],
    [
     4.89,
     160.0,
     11.8
    ],
    [
     5.12,
     160.0,
     11.8
    ]
   ]
  },
  {
   "id": "get",
   "variant": "whole-file",
   "method": "GET",
   "size": 167772160,
   "gzip": false,
   "response": "HTTP/1.1 200 OK",
   "content_length": 167772160,
   "received": 0,
   "payload": 0,
   "seconds": 0.8,
   "killed": true,
   "exit_code": 137,
   "peak_mib": null,
   "samples": []
  },
  {
   "id": "gzip",
   "variant": "solution",
   "method": "GET",
   "size": 167772160,
   "gzip": true,
   "response": "HTTP/1.1 200 OK",
   "content_length": 167823358,
   "received": 167823358,
   "payload": 167772160,
   "seconds": 9.5,
   "killed": false,
   "exit_code": null,
   "peak_mib": 12.2,
   "samples": [
    [
     0.18,
     0.0,
     12.1
    ],
    [
     0.41,
     0.0,
     12.1
    ],
    [
     0.63,
     0.0,
     12.1
    ],
    [
     0.88,
     0.0,
     12.1
    ],
    [
     1.11,
     0.0,
     12.1
    ],
    [
     1.33,
     0.0,
     12.1
    ],
    [
     1.57,
     0.0,
     12.1
    ],
    [
     1.78,
     0.0,
     12.1
    ],
    [
     2.02,
     0.0,
     12.2
    ],
    [
     2.23,
     0.0,
     12.1
    ],
    [
     2.46,
     0.0,
     12.1
    ],
    [
     2.69,
     0.0,
     12.2
    ],
    [
     2.94,
     0.0,
     12.1
    ],
    [
     3.16,
     0.0,
     12.1
    ],
    [
     3.4,
     0.0,
     12.1
    ],
    [
     3.61,
     0.0,
     12.1
    ],
    [
     3.84,
     0.0,
     12.1
    ],
    [
     4.07,
     0.0,
     12.1
    ],
    [
     4.31,
     7.2,
     11.8
    ],
    [
     4.53,
     15.8,
     11.8
    ],
    [
     4.78,
     24.4,
     11.8
    ],
    [
     5.01,
     33.0,
     11.8
    ],
    [
     5.24,
     41.6,
     11.8
    ],
    [
     5.48,
     50.2,
     11.8
    ],
    [
     5.73,
     58.8,
     11.8
    ],
    [
     5.98,
     68.2,
     11.8
    ],
    [
     6.22,
     76.4,
     11.8
    ],
    [
     6.46,
     85.1,
     11.8
    ],
    [
     6.7,
     93.6,
     11.8
    ],
    [
     6.96,
     103.0,
     11.8
    ],
    [
     7.19,
     111.6,
     11.8
    ],
    [
     7.44,
     120.2,
     11.8
    ],
    [
     7.67,
     128.8,
     11.8
    ],
    [
     7.91,
     137.2,
     11.8
    ],
    [
     8.14,
     145.8,
     11.8
    ],
    [
     8.37,
     154.1,
     11.8
    ],
    [
     8.61,
     160.0,
     11.8
    ],
    [
     8.86,
     160.0,
     11.8
    ],
    [
     9.1,
     160.0,
     11.8
    ],
    [
     9.34,
     160.0,
     11.8
    ]
   ]
  },
  {
   "id": "gzip",
   "variant": "gzip-in-memory",
   "method": "GET",
   "size": 167772160,
   "gzip": true,
   "response": "соединение закрыто без ответа",
   "seconds": 3.0,
   "killed": true,
   "exit_code": 137,
   "peak_mib": 117.9,
   "samples": [
    [
     0.18,
     0.0,
     19.9
    ],
    [
     0.41,
     0.0,
     32.0
    ],
    [
     0.64,
     0.0,
     43.9
    ],
    [
     0.87,
     0.0,
     56.4
    ],
    [
     1.1,
     0.0,
     68.4
    ],
    [
     1.34,
     0.0,
     81.3
    ],
    [
     1.57,
     0.0,
     93.5
    ],
    [
     1.8,
     0.0,
     105.4
    ],
    [
     2.05,
     0.0,
     117.9
    ]
   ]
  }
 ]
}
