[ADD] benchmarks: add benchmarks in main branch

this will make it easier to compare various situations.
This commit is contained in:
Géry Debongnie
2019-04-29 22:54:26 +02:00
parent 40e486a9eb
commit eb910193d7
32 changed files with 26815 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
import sys
import thread
import webbrowser
import time
import BaseHTTPServer, SimpleHTTPServer
def start_server():
httpd = BaseHTTPServer.HTTPServer(('127.0.0.1', 3600), SimpleHTTPServer.SimpleHTTPRequestHandler)
httpd.serve_forever()
thread.start_new_thread(start_server,())
url = 'http://127.0.0.1:3600/benchmarks'
webbrowser.open_new(url)
while True:
try:
time.sleep(1)
except KeyboardInterrupt:
sys.exit(0)