[riot-notifications] [RIOT-OS/RIOT] tests/periph_spi: Add thread runtime stats (#14087)

benpicco notifications at github.com
Tue May 19 11:10:30 CEST 2020


@benpicco commented on this pull request.



> +    printf("\t\t%i\t%i\n", (int)(stop - start),
+           (int)xtimer_diff(sched_stop, sched_start).ticks32);

Looks good now

```
2020-05-19 11:09:32,410 # ### Running some benchmarks, all values in [us] ###
2020-05-19 11:09:32,444 # ### Test				Transfer time	user time
2020-05-19 11:09:32,444 # 
2020-05-19 11:09:32,521 #  1 - write 1000 times 1 byte:			32768	8205
2020-05-19 11:09:32,612 #  2 - write 1000 times 2 byte:			47268	11829
2020-05-19 11:09:34,453 #  3 - write 1000 times 100 byte:		1793584	448408
2020-05-19 11:09:34,570 #  4 - write 1000 times 1 byte to register:	62332	15595
2020-05-19 11:09:34,703 #  5 - write 1000 times 2 byte to register:	78400	19612
2020-05-19 11:09:36,587 #  6 - write 1000 times 100 byte to register:	1824772	456205
2020-05-19 11:09:36,677 #  7 - read 1000 times 2 byte:			47340	11847
2020-05-19 11:09:38,513 #  8 - read 1000 times 100 byte:			1787504	446888
2020-05-19 11:09:38,646 #  9 - read 1000 times 2 byte from register:	78460	19628
2020-05-19 11:09:40,526 # 10 - read 1000 times 100 byte from register:	1818688	454685
2020-05-19 11:09:40,619 # 11 - transfer 1000 times 2 byte:		47400	11862
2020-05-19 11:09:42,470 # 12 - transfer 1000 times 100 byte:		1799880	449982
2020-05-19 11:09:42,606 # 13 - transfer 1000 times 2 byte to register:	78520	19643
2020-05-19 11:09:44,499 # 14 - transfer 1000 times 100 byte to register:	1831084	457783
2020-05-19 11:09:45,529 # -- - SUM:					11328000	11328688
2020-05-19 11:09:45,561 # 
2020-05-19 11:09:45,561 # ### All runs complete ###
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14087#discussion_r427149628
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200519/76c6f0a6/attachment.htm>


More information about the notifications mailing list