Skip to content

Conversation

bhoomrs
Copy link
Owner

@bhoomrs bhoomrs commented Jan 16, 2025

Description

Test Steps

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@bhoomrs bhoomrs closed this Jan 16, 2025
@bhoomrs bhoomrs reopened this Jan 16, 2025
@bhoomrs bhoomrs closed this Jan 16, 2025
@bhoomrs bhoomrs reopened this Jan 16, 2025
@bhoomrs bhoomrs closed this Jan 16, 2025
@bhoomrs bhoomrs reopened this Jan 16, 2025
@bhoomrs bhoomrs closed this Jan 16, 2025
@bhoomrs bhoomrs reopened this Jan 16, 2025
@bhoomrs bhoomrs closed this Jan 16, 2025
@bhoomrs bhoomrs reopened this Jan 16, 2025
@bhoomrs bhoomrs closed this Jan 16, 2025
@bhoomrs bhoomrs reopened this Jan 16, 2025
@bhoomrs bhoomrs closed this Jan 16, 2025
@bhoomrs bhoomrs reopened this Jan 16, 2025
@bhoomrs bhoomrs closed this Jan 16, 2025
@bhoomrs bhoomrs reopened this Jan 16, 2025
@bhoomrs bhoomrs closed this Jan 16, 2025
@bhoomrs bhoomrs reopened this Jan 16, 2025
@bhoomrs bhoomrs closed this Jan 16, 2025
@bhoomrs bhoomrs reopened this Jan 16, 2025
@bhoomrs
Copy link
Owner Author

bhoomrs commented Jan 16, 2025

Captured Data from the hardware:


@bhoomrs bhoomrs closed this Jan 16, 2025
@bhoomrs bhoomrs reopened this Jan 16, 2025
@bhoomrs
Copy link
Owner Author

bhoomrs commented Jan 16, 2025

Captured Data from the hardware:

Spawn (no context switch)               :  13625,  13625,  15416
Create (no context switch)              :    n/a,    n/a,    n/a
Start (no context switch)               :    n/a,    n/a,    n/a
Suspend (no context switch)             :   5458,   5458,   7250
Resume (no context switch)              :   4625,   4625,   6291
Spawn (context switch)                  :  14791,  14791,  16625
Start  (context switch)                 :    n/a,    n/a,    n/a
Suspend (context switch)                :   8208,   8125,  10000
Resume (context switch)                 :   6458,   6458,   8166
Terminate (context switch)              :  16458,  16458,  19333
** Mutex Stats [avg, min, max] in nanoseconds **
Lock (no owner)                         :   3916,   3916,   5625
Unlock (no waiters)                     :   4666,   4666,   6458
Recursive lock                          :   1708,   1666,   3500
Recursive unlock                        :   1791,   1791,   3541
Unlock with unpend (no context switch)  :   4708,   4708,   6375
Unlock with unpend (context switch)     :  13291,  13291,  15000
Pend (no priority inheritance)          :  18133,  18125,  20958
Pend (priority inheritance)             :  20875,  20833,  23583
** Semaphore stats [avg, min, max] in nanoseconds **
Take (context switch)                   :  16541,  16541,  19375
Give (context switch)                   :   9125,   9125,  10833
** Semaphore stats [avg, min, max] in nanoseconds **
Give (no context switch)                :   3083,   3083,   4750
Take (no context switch)                :   2625,   2625,   4375
** Yield stats [avg, min, max] in nanoseconds **
Yield (no context switch)               :   2791,   2791,   4458
Yield (context switch)                  :   2708,   2708,   4458
** Allocation stats [avg, min, max] in nanoseconds **
Malloc                                  :    591,    591,   2333
Free                                    :    558,    550,   2450
** Message queue stats [avg, min, max] in nanoseconds **
Create                                  :    n/a,    n/a,    n/a
Send (no context switch)                :    n/a,    n/a,    n/a
Receive (no context switch)             :    n/a,    n/a,    n/a
Send (context switch)                   :    n/a,    n/a,    n/a
Receive (context switch)                :    n/a,    n/a,    n/a
** Interrupt Stats [avg, min, max] in nanoseconds **

Latency                                 :    458,    458,    458

*** Done! ***


@bhoomrs bhoomrs closed this Jan 16, 2025
@bhoomrs bhoomrs reopened this Jan 16, 2025
@bhoomrs
Copy link
Owner Author

bhoomrs commented Jan 16, 2025

Captured Data from the hardware:

Spawn (no context switch)               :  13625,  13625,  15416
Create (no context switch)              :    n/a,    n/a,    n/a
Start (no context switch)               :    n/a,    n/a,    n/a
Suspend (no context switch)             :   5458,   5458,   7250
Resume (no context switch)              :   4625,   4625,   6291
Spawn (context switch)                  :  14791,  14791,  16625
Start  (context switch)                 :    n/a,    n/a,    n/a
Suspend (context switch)                :   8208,   8125,  10000
Resume (context switch)                 :   6458,   6458,   8166
Terminate (context switch)              :  16458,  16458,  19333
** Mutex Stats [avg, min, max] in nanoseconds **
Lock (no owner)                         :   3916,   3916,   5625
Unlock (no waiters)                     :   4666,   4666,   6458
Recursive lock                          :   1708,   1666,   3500
Recursive unlock                        :   1791,   1791,   3541
Unlock with unpend (no context switch)  :   4708,   4708,   6375
Unlock with unpend (context switch)     :  13291,  13291,  15000
Pend (no priority inheritance)          :  18133,  18125,  20958
Pend (priority inheritance)             :  20875,  20833,  23583
** Semaphore stats [avg, min, max] in nanoseconds **
Take (context switch)                   :  16541,  16541,  19375
Give (context switch)                   :   9125,   9125,  10833
** Semaphore stats [avg, min, max] in nanoseconds **
Give (no context switch)                :   3083,   3083,   4750
Take (no context switch)                :   2625,   2625,   4375
** Yield stats [avg, min, max] in nanoseconds **
Yield (no context switch)               :   2791,   2791,   4458
Yield (context switch)                  :   2708,   2708,   4458
** Allocation stats [avg, min, max] in nanoseconds **
Malloc                                  :    591,    591,   2333
Free                                    :    558,    550,   2450
** Message queue stats [avg, min, max] in nanoseconds **
Create                                  :    n/a,    n/a,    n/a
Send (no context switch)                :    n/a,    n/a,    n/a
Receive (no context switch)             :    n/a,    n/a,    n/a
Send (context switch)                   :    n/a,    n/a,    n/a
Receive (context switch)                :    n/a,    n/a,    n/a
** Interrupt Stats [avg, min, max] in nanoseconds **

Latency                                 :    458,    458,    458

*** Done! ***


@bhoomrs bhoomrs closed this Jan 16, 2025
@bhoomrs bhoomrs reopened this Jan 16, 2025
@bhoomrs bhoomrs closed this Jan 17, 2025
@bhoomrs bhoomrs reopened this Jan 17, 2025
@bhoomrs bhoomrs closed this Jan 17, 2025
@bhoomrs bhoomrs reopened this Jan 17, 2025
@bhoomrs
Copy link
Owner Author

bhoomrs commented Jan 17, 2025

This PR is benchmarked on NXP FRDM-K64F microcontroller board. Here are the results:

** Thread stats [avg, min, max] in nanoseconds **

No outliers detected. You are good to go.

@bhoomrs bhoomrs closed this Jan 17, 2025
@bhoomrs
Copy link
Owner Author

bhoomrs commented Jan 17, 2025

This PR is benchmarked on NXP FRDM-K64F microcontroller board. Here are the results:

** Thread stats [avg, min, max] in nanoseconds **

No outliers detected. You are good to go.

@bhoomrs bhoomrs reopened this Jan 17, 2025
@bhoomrs bhoomrs closed this Jan 17, 2025
@bhoomrs
Copy link
Owner Author

bhoomrs commented Jan 17, 2025

This PR is benchmarked on NXP FRDM-K64F microcontroller board. Here are the results:

** Thread stats [avg, min, max] in nanoseconds **

No outliers detected. You are good to go.

@bhoomrs bhoomrs reopened this Jan 17, 2025
@bhoomrs
Copy link
Owner Author

bhoomrs commented Jan 17, 2025

This PR is benchmarked on NXP FRDM-K64F microcontroller board. Here are the results:

** Thread stats [avg, min, max] in nanoseconds **

No outliers detected. You are good to go.

@bhoomrs bhoomrs closed this Jan 17, 2025
@bhoomrs bhoomrs reopened this Jan 17, 2025
@bhoomrs
Copy link
Owner Author

bhoomrs commented Jan 17, 2025

This PR is benchmarked on NXP FRDM-K64F microcontroller board. Here are the results:

** Thread stats [avg, min, max] in nanoseconds **

No outliers detected. You are good to go.

@bhoomrs bhoomrs closed this Jan 17, 2025
@bhoomrs bhoomrs reopened this Jan 17, 2025
@bhoomrs
Copy link
Owner Author

bhoomrs commented Jan 17, 2025

This PR is benchmarked on NXP FRDM-K64F microcontroller board. Here are the results:

** Thread stats [avg, min, max] in nanoseconds **

No outliers detected. You are good to go.

@bhoomrs bhoomrs closed this Jan 17, 2025
@bhoomrs
Copy link
Owner Author

bhoomrs commented Jan 17, 2025

This PR is benchmarked on NXP FRDM-K64F microcontroller board. Here are the results:

** Thread stats [avg, min, max] in nanoseconds **

No outliers detected. You are good to go.

@bhoomrs bhoomrs reopened this Jan 17, 2025
@bhoomrs
Copy link
Owner Author

bhoomrs commented Jan 17, 2025

This PR is benchmarked on NXP FRDM-K64F microcontroller board. Here are the results:

** Thread stats [avg, min, max] in nanoseconds **

No outliers detected. You are good to go.

@bhoomrs bhoomrs closed this Jan 17, 2025
@bhoomrs
Copy link
Owner Author

bhoomrs commented Jan 17, 2025

This PR is benchmarked on NXP FRDM-K64F microcontroller board. Here are the results:

** Thread stats [avg, min, max] in nanoseconds **
Spawn (no context switch)               :  13625,  13625,  15416
Create (no context switch)              :    n/a,    n/a,    n/a
Start (no context switch)               :    n/a,    n/a,    n/a
Suspend (no context switch)             :   5458,   5458,   7250
Resume (no context switch)              :   4625,   4625,   6291
Spawn (context switch)                  :  14791,  14791,  16625
Start  (context switch)                 :    n/a,    n/a,    n/a
Suspend (context switch)                :   8208,   8125,  10000
Resume (context switch)                 :   6458,   6458,   8166
Terminate (context switch)              :  16458,  16458,  19333
** Mutex Stats [avg, min, max] in nanoseconds **
Lock (no owner)                         :   3916,   3916,   5625
Unlock (no waiters)                     :   4666,   4666,   6458
Recursive lock                          :   1708,   1666,   3500
Recursive unlock                        :   1791,   1791,   3541
Unlock with unpend (no context switch)  :   4708,   4708,   6375
Unlock with unpend (context switch)     :  13291,  13291,  15000
Pend (no priority inheritance)          :  18133,  18125,  20958
Pend (priority inheritance)             :  20875,  20833,  23583
** Semaphore stats [avg, min, max] in nanoseconds **
Take (context switch)                   :  16541,  16541,  19375
Give (context switch)                   :   9125,   9125,  10833
** Semaphore stats [avg, min, max] in nanoseconds **
Give (no context switch)                :   3083,   3083,   4750
Take (no context switch)                :   2625,   2625,   4375
** Yield stats [avg, min, max] in nanoseconds **
Yield (no context switch)               :   2791,   2791,   4458
Yield (context switch)                  :   2708,   2708,   4458
** Allocation stats [avg, min, max] in nanoseconds **
Malloc                                  :    591,    591,   2333
Free                                    :    558,    550,   2450
** Message queue stats [avg, min, max] in nanoseconds **
Create                                  :    n/a,    n/a,    n/a
Send (no context switch)                :    n/a,    n/a,    n/a
Receive (no context switch)             :    n/a,    n/a,    n/a
Send (context switch)                   :    n/a,    n/a,    n/a
Receive (context switch)                :    n/a,    n/a,    n/a
** Interrupt Stats [avg, min, max] in nanoseconds **

Latency                                 :    458,    458,    458

*** Done! ***


No outliers detected. You are good to go.

@bhoomrs bhoomrs reopened this Jan 17, 2025
@bhoomrs bhoomrs closed this Jan 17, 2025
@bhoomrs bhoomrs reopened this Jan 17, 2025
@bhoomrs bhoomrs closed this Jan 17, 2025
@bhoomrs bhoomrs reopened this Jan 17, 2025
@bhoomrs
Copy link
Owner Author

bhoomrs commented Jan 17, 2025

This PR is benchmarked on NXP FRDM-K64F microcontroller board. Here are the results:

** Thread stats [avg, min, max] in nanoseconds **
Spawn (no context switch)               :  13625,  13625,  15416
Create (no context switch)              :    n/a,    n/a,    n/a
Start (no context switch)               :    n/a,    n/a,    n/a
Suspend (no context switch)             :   5458,   5458,   7250
Resume (no context switch)              :   4625,   4625,   6291
Spawn (context switch)                  :  14791,  14791,  16625
Start  (context switch)                 :    n/a,    n/a,    n/a
Suspend (context switch)                :   8208,   8125,  10000
Resume (context switch)                 :   6458,   6458,   8166
Terminate (context switch)              :  16458,  16458,  19333
** Mutex Stats [avg, min, max] in nanoseconds **
Lock (no owner)                         :   3916,   3916,   5625
Unlock (no waiters)                     :   4666,   4666,   6458
Recursive lock                          :   1708,   1666,   3500
Recursive unlock                        :   1791,   1791,   3541
Unlock with unpend (no context switch)  :   4708,   4708,   6375
Unlock with unpend (context switch)     :  13291,  13291,  15000
Pend (no priority inheritance)          :  18133,  18125,  20958
Pend (priority inheritance)             :  20875,  20833,  23583
** Semaphore stats [avg, min, max] in nanoseconds **
Take (context switch)                   :  16541,  16541,  19375
Give (context switch)                   :   9125,   9125,  10833
** Semaphore stats [avg, min, max] in nanoseconds **
Give (no context switch)                :   3083,   3083,   4750
Take (no context switch)                :   2625,   2625,   4375
** Yield stats [avg, min, max] in nanoseconds **
Yield (no context switch)               :   2791,   2791,   4458
Yield (context switch)                  :   2708,   2708,   4458
** Allocation stats [avg, min, max] in nanoseconds **
Malloc                                  :    591,    591,   2333
Free                                    :    558,    550,   2450
** Message queue stats [avg, min, max] in nanoseconds **
Create                                  :    n/a,    n/a,    n/a
Send (no context switch)                :    n/a,    n/a,    n/a
Receive (no context switch)             :    n/a,    n/a,    n/a
Send (context switch)                   :    n/a,    n/a,    n/a
Receive (context switch)                :    n/a,    n/a,    n/a
** Interrupt Stats [avg, min, max] in nanoseconds **

Latency                                 :    458,    458,    458

*** Done! ***


Outliers Detected:

  • Spawn (no context switch) (max): 15416 (Ideal: 13625)

Please improve your Kernel performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant