|
| 1 | +import os |
| 2 | +import json |
| 3 | + |
| 4 | + |
| 5 | +def main(): |
| 6 | + os.system("python3 count-time.py zookeeper.json zookeeper") |
| 7 | + os.system("python3 count-time.py rabbitmq.json rabbitmq") |
| 8 | + os.system("python3 count-time.py fluent.json fluent") |
| 9 | + zk_data = json.load(open("zookeeper-time.json")) |
| 10 | + rmq_data = json.load(open("rabbitmq-time.json")) |
| 11 | + fb_data = json.load(open("fluent-time.json")) |
| 12 | + zk_raw_data = json.load(open("zookeeper.json")) |
| 13 | + rmq_raw_data = json.load(open("rabbitmq.json")) |
| 14 | + fb_raw_data = json.load(open("fluent.json")) |
| 15 | + anvil_raw_data = json.load(open("lib.json")) |
| 16 | + print("ZooKeeper:") |
| 17 | + print("Liveness & {}".format(zk_data["Liveness"] / 1000)) |
| 18 | + print("Safety & {}".format(zk_data["Safety"] / 1000)) |
| 19 | + print("Conformance & {}".format(zk_data["Impl"] / 1000)) |
| 20 | + print( |
| 21 | + "Total & {} ({})".format( |
| 22 | + zk_data["Total"] / 1000, zk_raw_data["times-ms"]["total"] / 1000 |
| 23 | + ) |
| 24 | + ) |
| 25 | + print("RabbitMQ:") |
| 26 | + print("Liveness & {}".format(rmq_data["Liveness"] / 1000)) |
| 27 | + print("Safety & {}".format(rmq_data["Safety"] / 1000)) |
| 28 | + print("Conformance & {}".format(rmq_data["Impl"] / 1000)) |
| 29 | + print( |
| 30 | + "Total & {} ({})".format( |
| 31 | + rmq_data["Total"] / 1000, rmq_raw_data["times-ms"]["total"] / 1000 |
| 32 | + ) |
| 33 | + ) |
| 34 | + print("Fluent:") |
| 35 | + print("Liveness & {}".format(fb_data["Liveness"] / 1000)) |
| 36 | + print("Safety & {}".format(fb_data["Safety"] / 1000)) |
| 37 | + print("Conformance & {}".format(fb_data["Impl"] / 1000)) |
| 38 | + print( |
| 39 | + "Total & {} ({})".format( |
| 40 | + fb_data["Total"] / 1000, fb_raw_data["times-ms"]["total"] / 1000 |
| 41 | + ) |
| 42 | + ) |
| 43 | + print("Anvil:") |
| 44 | + print( |
| 45 | + "Reusable lemmas & {} ({})".format( |
| 46 | + anvil_raw_data["times-ms"]["total-verify"] / 1000, |
| 47 | + anvil_raw_data["times-ms"]["total"] / 1000, |
| 48 | + ) |
| 49 | + ) |
| 50 | + |
| 51 | + |
| 52 | +if __name__ == "__main__": |
| 53 | + main() |
0 commit comments