- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone.
I've been doing some optimization experiments on several functions in my app and monitoring the results with VTune v6.1. Recently, while trying to improve the performance of one of my functions I unrolled it twice. According to VTune sampling this decreased the functions clockticks by about half. However, when I ran the app and timed it with a stopwatch, it was considerably slower! How can this happen? Only the unroled function was changed, nothing else. Thanks.
I've been doing some optimization experiments on several functions in my app and monitoring the results with VTune v6.1. Recently, while trying to improve the performance of one of my functions I unrolled it twice. According to VTune sampling this decreased the functions clockticks by about half. However, when I ran the app and timed it with a stopwatch, it was considerably slower! How can this happen? Only the unroled function was changed, nothing else. Thanks.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I share your confusion. The normal things to check are that the system wasn't doing other things at the same time during the unroll test, verifying that the VTune Analyzer sampling rate is the same (Configure->Modify->Events->SampleAfterForClockticks), the system memory and configuration are the same, input data set is the same, disk and memory caches are in the same state (has the program already run and caches are warmed up with data)... It is the case that if all things are the same, there should be a better correlation between execution time and clockticks.
![](/skins/images/D2683F18326913BBA0436CB7114DD569/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page