MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / write_csv

Function write_csv

benchmarks/extract_graph_data.py:38–45  ·  view source on GitHub ↗
(data, path, hasBulk = True)

Source from the content-addressed store, hash-verified

36
37
38def write_csv(data, path, hasBulk = True):
39 with open(path, 'w') as f:
40 f.write('threads,"std::queue + std::mutex","boost::lockfree::queue","tbb::concurrent_queue","moodycamel::ConcurrentQueue (no tokens)","moodycamel::ConcurrentQueue",' + ('"moodycamel::ConcurrentQueue (bulk)"' if hasBulk else '') + '\n')
41 for threads in sorted(data.keys()):
42 f.write(str(threads))
43 for opsst in data[threads]:
44 f.write(',' + str(opsst))
45 f.write('\n')
46
47
48try:

Callers 1

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected