There is no term "optimized Dhrystone 2.1 test", test source code must be used "as is", without any change, otherwise the result will not be comparable with other result from other processors. Optimizations can be done in compiler settings, optimized libraries for this particular processor, using specific instructions related tot his processor and etc, but not to the test code itself.
For P2020 Dhrystone benchmark reproducibility guide please please open a case to online technical support.
To enter a case to Online Technical Support please perform the following:
1. Please open www.nxp.com
2. Click "SUPPORT" drop-down menu
3. Click "All support options" in "SUPPORT" drop-down menu
4. Enter your NXP site login/password if necessary.
5. Click "Go to Tickets" in "Support Requests" section
6. The system should redirect you to this page https://nxpcommunity.force.com/community/CommunityContextPage
7. At this page please create a new folder for support cases by clicking "Add a Folder". Typically - one folder per project.
8. When asked, enter project details - design stage, projected annual volume, end application type and application name.
9. When folder is created, please click "Add a new case" button near to folder name to create support case.