Skip to content

Commit

Permalink
Push button and get table (#4)
Browse files Browse the repository at this point in the history
Signed-off-by: Xudong Sun <[email protected]>
  • Loading branch information
marshtompsxd committed Dec 18, 2023
1 parent ead0132 commit 5b52d89
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
File renamed without changes.
53 changes: 53 additions & 0 deletions tools/gen-t1-t2-time.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import os
import json


def main():
os.system("python3 count-time.py zookeeper.json zookeeper")
os.system("python3 count-time.py rabbitmq.json rabbitmq")
os.system("python3 count-time.py fluent.json fluent")
zk_data = json.load(open("zookeeper-time.json"))
rmq_data = json.load(open("rabbitmq-time.json"))
fb_data = json.load(open("fluent-time.json"))
zk_raw_data = json.load(open("zookeeper.json"))
rmq_raw_data = json.load(open("rabbitmq.json"))
fb_raw_data = json.load(open("fluent.json"))
anvil_raw_data = json.load(open("lib.json"))
print("ZooKeeper:")
print("Liveness & {}".format(zk_data["Liveness"] / 1000))
print("Safety & {}".format(zk_data["Safety"] / 1000))
print("Conformance & {}".format(zk_data["Impl"] / 1000))
print(
"Total & {} ({})".format(
zk_data["Total"] / 1000, zk_raw_data["times-ms"]["total"] / 1000
)
)
print("RabbitMQ:")
print("Liveness & {}".format(rmq_data["Liveness"] / 1000))
print("Safety & {}".format(rmq_data["Safety"] / 1000))
print("Conformance & {}".format(rmq_data["Impl"] / 1000))
print(
"Total & {} ({})".format(
rmq_data["Total"] / 1000, rmq_raw_data["times-ms"]["total"] / 1000
)
)
print("Fluent:")
print("Liveness & {}".format(fb_data["Liveness"] / 1000))
print("Safety & {}".format(fb_data["Safety"] / 1000))
print("Conformance & {}".format(fb_data["Impl"] / 1000))
print(
"Total & {} ({})".format(
fb_data["Total"] / 1000, fb_raw_data["times-ms"]["total"] / 1000
)
)
print("Anvil:")
print(
"Reusable lemmas & {} ({})".format(
anvil_raw_data["times-ms"]["total-verify"] / 1000,
anvil_raw_data["times-ms"]["total"] / 1000,
)
)


if __name__ == "__main__":
main()

0 comments on commit 5b52d89

Please sign in to comment.