Commit 04538e7e authored by Andreas Schmidt's avatar Andreas Schmidt

Fix performance tests.

parent 6233d717
#!/usr/bin/env bash
rm src/cython/prrt.c
rm prrt/prrt.c
python3 setup.py build_ext --inplace
cp prrt*.so ./build/
\ No newline at end of file
#!/usr/bin/env bash
zsh build.sh
echo "Build completed."
sudo python3 eval.py
\ No newline at end of file
......@@ -48,7 +48,7 @@ class SenderThread(threading.Thread):
def run(self):
self.sock.connect("127.244.0.1", 7000)
for i in range(self.packetCount):
d = str(i).zfill(self.seqnoDigits)
d = str(i).zfill(self.seqnoDigits).encode("UTF-8")
self.sentPackets[i] = datetime.datetime.now()
self.sock.send(d)
time.sleep(0.00001)
......@@ -103,7 +103,7 @@ class TestSetup(object):
def run(self):
# TODO: create and apply only to specific traffic
subprocess.run("tc qdisc add dev lo root netem " + self.netem_config(), shell=True)
#subprocess.run("tc disc add dev lo root netem " + self.netem_config(), shell=True)
seqnoDigits = math.ceil(math.log10(self.packets))
recvThread = ReceiverThread(seqnoDigits, self.packets)
......@@ -121,7 +121,7 @@ class TestSetup(object):
item = (recvThread.receivedPackets[i] - sendThread.sentPackets[i]).item()
delays[i] = item.total_seconds() if item is not None else np.NAN
subprocess.run("tc qdisc del dev lo root", shell=True, check=True)
#subprocess.run("tc qdisc del dev lo root", shell=True, check=True)
results = TestResults()
results.packetsSent = self.packets
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment