(data, path, hasBulk = True)
| 36 | |
| 37 | |
| 38 | def 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 | |
| 48 | try: |
no test coverage detected