Search code examples
pluginsperformance-testingexecution-timedynamics-crm-2016

How to test Microsoft Dynamics CRM 2016 Plug_ins with Benchmark


I'm working with Dynamics CRM 2016, i have developped specified plug_ins.
On my first test, my process stay so long that time out exception is displayed.

I optimized my code, reorgonized my plug_ins, than i test for the second time. It's now more performant but i need some measures or statics.
I have been told to use Benchmark but i couldn't find any use documentation.
Please help me to integrate Benchmark in my Dynamics CRM 2016 process, i'm stucked here.


Solution

  • Not sure what Benchmark is, but you can debug your plugins locally using the plugin registration tool kit, or you can add trace statements and provide your own timings to figure out what is taking so long.

    My best guess is that you're running on the update of an entity, and updating the entity, which in turn is causing your plugin to trigger again, updating the entity, which in turn is causing your plugin to trigger again, updating the entity... infinite loop that then gets shut down after 2 minutes by CRM.