You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import util
|
|
|
|
|
|
@util.measure_performance
|
|
def compute_task():
|
|
for _ in range(5):
|
|
util.compute_task()
|
|
|
|
|
|
@util.measure_performance
|
|
def io_task():
|
|
for url in util.urls:
|
|
util.fetch_url(url)
|
|
|
|
|
|
def main():
|
|
compute_task()
|
|
io_task()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|