MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / fake_json_data

Function fake_json_data

tests/benchmark-serializer.py:58–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57
58def fake_json_data():
59 return {
60 'words': """
61 Lorem ipsum dolor sit amet, consectetur adipiscing
62 elit. Mauris adipiscing adipiscing placerat.
63 Vestibulum augue augue,
64 pellentesque quis sollicitudin id, adipiscing.
65 """ * 100,
66 'list': list(range(100)) * 500,
67 'dict': {str(i): 'a' for i in range(50000)},
68 'dict2': {i: 'a' for i in range(50000)},
69 'int': 3000,
70 'float': 100.123456
71 }
72
73
74if __name__ == '__main__':

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…