mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
doc: Add documentation to pthread_mutex_perf application
Build Documentation / build-html (push) Has been cancelled
Build Documentation / build-html (push) Has been cancelled
Signed-off-by: Alan C. Assis <acassis@gmail.com>
This commit is contained in:
committed by
Alan C. Assis
parent
f14461db2e
commit
c84e2ebfa9
@@ -0,0 +1,15 @@
|
||||
=======
|
||||
Testing
|
||||
=======
|
||||
|
||||
The ``pthread_mutex_perf`` is a simple performance test to validate if some
|
||||
specific kernel modification impacted the pthread_mutex_trylock().
|
||||
|
||||
Basically the test will run a busy-wait 1000000 trying to acquire a mutex
|
||||
that is already locked. Then it will calculate the total time and the
|
||||
average time, repeating this cycle 10 times.
|
||||
|
||||
This test is not intended to confirm that pthread mutex is working, for that
|
||||
it is better to use ostest. Its goal is to verify impact in the kernel that
|
||||
could be considered a regression.
|
||||
|
||||
Reference in New Issue
Block a user