We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eed33cd commit b95e776Copy full SHA for b95e776
py/tests/sqlite_leveldb_comparison.py
@@ -44,12 +44,12 @@ def test():
44
45
if leveldb_total_time < sqlite_total_time:
46
winner = "leveldb"
47
- ratio = round(sqlite_total_time / leveldb_total_time, 2)
+ ratio = sqlite_total_time / leveldb_total_time
48
else:
49
winner = "sqlite"
50
- ratio = round(leveldb_total_time / sqlite_total_time, 2)
+ ratio = leveldb_total_time / sqlite_total_time
51
52
- print(f"{winner} is {ratio}x times faster")
+ print(f"{winner} is {round(ratio, 2)} times faster")
53
54
55
if __name__ == "__main__":
0 commit comments