Anonymous avatar Anonymous committed 4ebaf6c Draft

keep notes about the transfer speeds

Comments (0)

Files changed (1)

upload_play/transfer-results.txt

+# this data is acquired while running the sinewave generator with output of tone
+
+# ser = serial.Serial(r'/dev/ttyUSB2', 9600)
+%timeit test_download_256()
+1 loops, best of 3: 270 ms per loop # 948 Bytes per second
+
+ser = serial.Serial(r'/dev/ttyUSB2', 921600)
+%timeit test_download_256()
+100 loops, best of 3: 5.27 ms per loop
+# = 48576 Bytes per second
+
+
+ser = serial.Serial(r'/dev/ttyUSB2', 2000000)
+
+
+%timeit test_download_256()
+100 loops, best of 3: 5.75 ms per loop # note about the same time as 921600 baud
+# perhaps overhead of loop is dominating now, so try larger payload
+
+%timeit test_download_1024_uint16()
+100 loops, best of 3: 13.5 ms per loop
+
+In [36]: (2048/13.5) * 1000
+Out[36]: 151703.70370370371 # about 151 KBytes per second
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.