Opened on 07/13/11 at 13:30:13
Last modified on 02/23/24 at 00:33:31
#1831 closed defect (fixed)
POSIX timing tests: psxtmmutex01 mutex create destroy
Reported by: | el.mastin2 | Owned by: | Jennifer Averett |
---|---|---|---|
Priority: | normal | Milestone: | 4.11 |
Component: | test | Version: | 4.11 |
Severity: | normal | Keywords: | |
Cc: | joel.sherrill@… | Blocked By: | |
Blocking: |
Description
Contains these mutex_tests:
pthread_mutex_init
phtread_mutex_destroy
The output (--target=sparc-rtems4.11 --enable-rtemsbsp=sis) is:
* POSIX TIME TEST PSXTMMUTEX01 *
pthread_mutex_init 41
pthread_mutex_destroy 46
* END OF POSIX TIME TEST PSXTMMUTEX01 *
Attachments (1)
Change History (6)
Changed on 07/13/11 at 13:30:13 by el.mastin2
Attachment: | psxtmmutex01.tar added |
---|
comment:1 Changed on 07/13/11 at 13:31:36 by el.mastin2
Owner: | changed from Joel Sherrill to Jennifer Averett |
---|
comment:2 Changed on 07/13/11 at 14:23:36 by Joel Sherrill
Resolution: | → fixed |
---|---|
Status: | new → closed, joel.sherrill@oarcorp.com |
I did a bit of minor formatting touch up. Operation being benchmarked should be indented, blank line between rtems_test_assert() and printing time.
Overall very good. The times look very reasonable. On psim, we have this:
TIME TEST 1 *
rtems_semaphore_create 294
rtems_semaphore_delete 349
rtems_semaphore_obtain: available 71
rtems_semaphore_obtain: not available -- NO_WAIT 71
rtems_semaphore_release: no waiting tasks 279
* END OF TEST 1 *
* POSIX TIME TEST PSXTMMUTEX01 *
pthread_mutex_init 338
pthread_mutex_destroy 393
* END OF POSIX TIME TEST PSXTMMUTEX01 *
Notice that the Classic API is a bit faster than the POSIX API. Mostly due to simpler argument parsing.
Committed and closing. Thanks.
comment:3 Changed on 11/24/14 at 18:58:28 by Gedare Bloom
Version: | HEAD → 4.11 |
---|
Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11
comment:4 Changed on 10/10/17 at 06:46:55 by Sebastian Huber
Component: | testing → unspecified |
---|
comment:5 Changed on 02/23/24 at 00:33:31 by Chris Johns
Component: | unspecified → test |
---|
posix timing tests, mutex create/destroy