定义
GLOBAL_DEFINES += RHINO_CONFIG_INTRPT_STATS=1 RHINO_CONFIG_HW_COUNT=1
GLOBAL_DEFINES += RHINO_CONFIG_REALTIME_TEST=1
hw timer 初始化
soc_hw_tmer_init();
benchmark结果
=======================AliOS Things Test Environment===================
test evironment congfig:
systick frequency : 100HZ
CPU clock frequency : 80000000HZ
timer clock frequency: 80000000HZ
========================================================================
=======================AliOS Things RealTime Test======================
TestId Function Avg(us) Min(us) Max(us) TestCount
------------------------------------------------------------------------
T1 intrpt_respond 0.35 0.35 0.56 5000
T2 intrpt_preempt 0.46 0.46 0.51 5000
T3 intrpt_wakeuptask 8.51 8.44 8.52 5000
T4 sched_yield 3.87 3.76 4.43 5000
T5 sched_preempt 6.18 6.03 6.26 5000
T6 sched_resume_active 4.52 4.46 4.53 5000
T7 syn_mutex_request 2.64 2.39 2.84 5000
T7 syn_mutex_release 3.07 2.61 3.39 5000
T8 syn_sem_request 1.86 1.83 2.34 5000
T8 syn_sem_release 1.86 1.79 2.39 5000
T9 sync_sem_shuffling 8.16 7.81 8.34 5000
T10 sync_mutex_shuffling 12.77 12.77 12.77 5000
T11 sync_sem_active_task 5.41 5.41 5.41 5000
T12 sync_mutex_active_task 7.05 7.05 7.05 5000
T13 syn_sem_rrwaketask 25.77 25.33 25.77 5000
T14 message_queue_send 4.01 3.71 4.30 5000
T14 message_queue_rev 4.17 3.85 4.21 5000
T15 message_queue_rrwp 27.05 26.60 27.67 5000
T16 mem_blk_alloc 0.58 0.57 0.73 5000
T16 mem_blk_free 0.55 0.55 0.66 5000
T17 mem_tlf_alloc 7.15 7.03 7.40 5000
T17 mem_tlf_free 4.40 4.36 4.46 5000
========================================================================
Max intrpt disable time : 7.03us