Skip to content

Commit af48065

Browse files
author
Elliot Kim
committed
adds sys library
1 parent b29dbea commit af48065

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test-vine-task-severless.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22
import ndcctools.taskvine as vine
33
import time
4+
import sys
45

56
def func():
67
return
@@ -45,7 +46,7 @@ def main():
4546
throughput = num_tasks/many
4647
chaining = num_tasks/one
4748

48-
print(f"Throughput was {throughput} tasks per second")
49+
print(f"\nThroughput was {throughput} tasks per second")
4950
print(f"Chaining was {chaining} tasks per second")
5051
print("all tasks complete!")
5152
assert throughput >= 110

test-vine-task-throughput.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import ndcctools.taskvine as vine
44
import time
5+
import sys
56

67
if __name__ == "__main__":
78

@@ -45,7 +46,7 @@
4546
one = end - start
4647
throughput = num_tasks/many
4748
chaining = num_tasks/one
48-
print(f"Throughput was {throughput} tasks per second")
49+
print(f"\nThroughput was {throughput} tasks per second")
4950
print(f"Chaining was {chaining} tasks per second")
5051
print("all tasks complete!")
5152
assert throughput >= 190

0 commit comments

Comments
 (0)