import time import xmlrpc.client s = xmlrpc.client.ServerProxy('http://localhost:8000') start = time.time() s.get_data() print('time:', time.time() - start)