(self)
| 289 | |
| 290 | class JsonDecodingTest(MicroTest): |
| 291 | def setUp(self): |
| 292 | super().setUp() |
| 293 | self.document = self.file_data |
| 294 | # Note: use the BSON size as the data size so we can compare BSON vs JSON performance. |
| 295 | self.data_size = len(encode(json_util.loads(self.file_data))) * NUM_DOCS |
| 296 | |
| 297 | def do_task(self): |
| 298 | for _ in range(NUM_DOCS): |