I just modified a demo program in which one task writing to the Queue and another task reading the Queue to evaluate the performance of freertos. I make the program toggling two different IO pins when writing and reading are finished. It takes about 22us from writing task to reading task. Is this normal for Freertos? feels like it should go faster than this with a 80MHz/105MDMIPS microcontroller.
If I understand correctly you are measuring the time between one task writing data to a queue, a task being unblocked, the scheduler selecting the task as the highest priority task, switching to the task, then the task reading from a queue - 23us might be reasonable, or at least, not unreasonable.
Are you calling portYIELDFROMISR() (or maybe portENDSWITCHINGISR(), I forget which is implemented on the PIC32, maybe both) at the end of the interrupt? Do you have compiler optimisation on?
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.