-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ver. 2.2 versus ver. 2.1 #11
Comments
Hi, I'm not sure offhand why you'd experience such a performance regression. Zik Saleeba On Mon, Jun 22, 2015, at 10:15 PM, mtrif wrote:
Links: |
Hi Zik, #include <stdio.h> printf("\nwhile loop with printf done %d times (took %f secs)\n", CountMax1, seconds1); void main() {} The result was marginally better, but version 2.2 is still much slower. I think I found something, with the help of gprof: in version 2.2 the script spent a lot of time inside VariableScopeBegin and VariableScopeEnd (approx. 50% the whole time). I'm sure you will find the proper medicine soon. For the time being I'll keep on playing with version 2.1. VERSION 2.2. Flat profile: Each sample counts as 0.01 seconds. VERSION 2.1 Flat profile: Each sample counts as 0.01 seconds. |
I've made a superficial timing testing of the captioned versions using an ad-hoc long empty for loop.
It resulted that ver. 2.2 is approximately 3 times slower than ver. 2.1 !!!
Could you tell me what am I doing wrong ?
Step-by-step:
I've got ver. 2.1 from Google Code and ver. 2.2 form GitHub.
I made the necessary cosmetic changes to unistd in order to get compiled by MinGW32 toolkit.
Got both complied (no optimisations) with TDM-GCC 4.8.1 32bit release on Win 7.
Run a very simple script containing an empty for and looped 3 million times.
Thank you in advance.
The text was updated successfully, but these errors were encountered: