[riot-notifications] [RIOT-OS/RIOT] sys/atomic_utils: Functions for atomic access (#14331)

Kaspar Schleiser notifications at github.com
Tue Nov 3 21:49:08 CET 2020


Re-ran on nrf52840dk:

```
main(): This is RIOT! (Version: 2020.10-devel-1529-g30a1e-atomic_utils)                                                   [31/3934]
Note: LOWER IS BETTER!                                                                                                             
                                                                                                                                   
+------+----------+------+------------------+------------------+------------------+
| mode |       op | bits |         volatile |      atomic util |       c11 atomic |
+------+----------+------+------------------+------------------+------------------+
| atom |    store |    8 |          6251 µs |         15627 µs |         10939 µs |
| atom |    store |   16 |          6251 µs |          9377 µs |         12502 µs |
| atom |    store |   32 |          6252 µs |         10939 µs |          9377 µs |
| atom |    store |   64 |          9376 µs |         15627 µs |         46877 µs |
| atom |     load |    8 |          7814 µs |         12502 µs |         14064 µs |
| atom |     load |   16 |          7814 µs |         10939 µs |         12501 µs |
| atom |     load |   32 |         12502 µs |         12501 µs |         10939 µs |
| atom |     load |   64 |          9376 µs |         15627 µs |         34377 µs |
| atom |      add |    8 |         14064 µs |         18752 µs |         20315 µs |
| atom |      add |   16 |         12502 µs |         20315 µs |         21877 µs |
| atom |      add |   32 |         15627 µs |         18752 µs |         25002 µs |
| atom |      add |   64 |         17189 µs |         23439 µs |         57814 µs |
| atom |      sub |    8 |         12502 µs |         25002 µs |         21877 µs |
| atom |      sub |   16 |         14064 µs |         18752 µs |         20314 µs |
| atom |      sub |   32 |         15627 µs |         21877 µs |         21877 µs |
| atom |      sub |   64 |         17189 µs |         23439 µs |         57814 µs |
| atom |       or |    8 |         10939 µs |         18752 µs |         20315 µs |
| atom |       or |   16 |         18752 µs |         20314 µs |         21877 µs |
| atom |       or |   32 |         15627 µs |         23439 µs |         20314 µs |
| atom |       or |   64 |         17189 µs |         25001 µs |         60939 µs |
| atom |      xor |    8 |         14064 µs |         18752 µs |         21877 µs |
| atom |      xor |   16 |         14064 µs |         25001 µs |         21877 µs |
| atom |      xor |   32 |         10939 µs |         18752 µs |         25002 µs |
| atom |      xor |   64 |         17190 µs |         25002 µs |         59376 µs |
| atom |      and |    8 |         14064 µs |         18752 µs |         21876 µs |                                        [1/3934]
| atom |      and |   16 |         14064 µs |         18752 µs |         21876 µs |                                                
| atom |      and |   32 |         10939 µs |         18752 µs |         20315 µs |
| atom |      and |   64 |         17189 µs |         23439 µs |         59376 µs |
| atom |      set |    8 |         10940 µs |         18752 µs |         25001 µs |
| atom |      set |   16 |         18752 µs |         25002 µs |         21877 µs |
| atom |      set |   32 |         10939 µs |         21877 µs |         26565 µs |
| atom |      set |   64 |         17189 µs |         25001 µs |         60939 µs |
| atom |    clear |    8 |         10939 µs |         18752 µs |         20314 µs |
| atom |    clear |   16 |         14064 µs |         21876 µs |         20314 µs |
| atom |    clear |   32 |         10939 µs |         18752 µs |         20315 µs |
| atom |    clear |   64 |         18752 µs |         31251 µs |         59377 µs |
| semi |      add |    8 |         18752 µs |         15627 µs |         20314 µs |
| semi |      add |   16 |         14064 µs |         15626 µs |         20314 µs |
| semi |      add |   32 |         10939 µs |         14064 µs |         20314 µs |
| semi |      add |   64 |         17189 µs |         23439 µs |         57814 µs |
| semi |      sub |    8 |         12502 µs |         18752 µs |         25001 µs |
| semi |      sub |   16 |         17189 µs |         14064 µs |         20314 µs |
| semi |      sub |   32 |         10939 µs |         14064 µs |         20314 µs |
| semi |      sub |   64 |         17189 µs |         23439 µs |         57814 µs |
| semi |       or |    8 |         12501 µs |         17189 µs |         25002 µs |
| semi |       or |   16 |         14064 µs |         14064 µs |         20314 µs |
| semi |       or |   32 |         10939 µs |         14064 µs |         28127 µs |
| semi |       or |   64 |         17190 µs |         25002 µs |         60939 µs |
| semi |      xor |    8 |         10940 µs |         14064 µs |         20314 µs |
| semi |      xor |   16 |         12502 µs |         17190 µs |         26564 µs |
| semi |      xor |   32 |         10939 µs |         14064 µs |         20314 µs |
| semi |      xor |   64 |         17189 µs |         25002 µs |         59377 µs |
| semi |      and |    8 |         10939 µs |         14064 µs |         20314 µs |
| semi |      and |   16 |         10939 µs |         14064 µs |         20314 µs |
| semi |      and |   32 |         10940 µs |         18752 µs |         25001 µs |
| semi |      and |   64 |         17189 µs |         23439 µs |         59376 µs |
+------+----------+------+------------------+------------------+------------------+
```

-- 
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/14331#issuecomment-721366665
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201103/3b13f072/attachment.htm>


More information about the notifications mailing list