From 85b5a04acf3b6a7b78d92cbdcd8bf8a369cada27 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 7 Jul 2020 17:28:15 +0800 Subject: [PATCH] test: print transfer rates in MiB/s --- artiq/test/coredevice/test_performance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/test/coredevice/test_performance.py b/artiq/test/coredevice/test_performance.py index a376bf73f..e5ccd7a98 100644 --- a/artiq/test/coredevice/test_performance.py +++ b/artiq/test/coredevice/test_performance.py @@ -52,19 +52,19 @@ class TransferTest(ExperimentCase): def test_host_to_device(self): exp = self.create(_Transfer) host_to_device_rate = exp.host_to_device() - print(host_to_device_rate, "B/s") + print(host_to_device_rate/(1024*1024), "MiB/s") self.assertGreater(host_to_device_rate, 2.0e6) def test_device_to_host(self): exp = self.create(_Transfer) device_to_host_rate = exp.device_to_host() - print(device_to_host_rate, "B/s") + print(device_to_host_rate/(1024*1024), "MiB/s") self.assertGreater(device_to_host_rate, 2.3e6) def test_device_to_host_array(self): exp = self.create(_Transfer) rate = exp.device_to_host_array() - print(rate, "B/s") + print(rate/(1024*1024), "MiB/s") self.assertGreater(rate, .15e6)