Timing tests

After take many profiles with sysprof, I wanted to measure time of switching.

* Syscall times() at the function e_shell_window_switch_to_component();
fprintf() of the component switched.

* Evolution starts up. Load of the last active component (contacts).
Time of switching: user 0,200000 seg, system: 0,020000 seg

* Switch of components once. Command: Ctrl + [1,2,3,4,5]
Component_id: mail;  Time of switching: user 0,400000 seg, system: 0,020000 seg
Component_id: contacts; Time of switching: user 0,120000 seg, system: 0,000000 seg
Component_id: calendar; Time of switching: user 0,320000 seg, system: 0,020000 seg
Component_id: tasks; Time of switching: user 0,070000 seg, system: 0,000000 seg
Component_id: memos; Time of switching: user 0,080000 seg, system: 0,000000 seg

* Switch many times from memos to mail.
It takes always the same time:
Component_id: mail
Time of switching: user 0,310000 seg, system: 0,000000 seg
We see that the time is less than the first time (due to the cache…).
But the component memos takes a little more time:
Component_id: memos
Time of switching: user 0,120000 seg, system: 0,000000 seg
-> Does it depends from which component we did the swtich?
Let’s take more timings.
What happens if I switch indiscriminately from task to mail? Ah! The times are different in every execution. For example:
Firstly:
Component_id: mail
Time of switching: user 0,340000 seg, system: 0,000000 seg

Component_id: tasks
Time of switching: user 0,150000 seg, system: 0,010000 seg

Component_id: mail
Time of switching: user 0,330000 seg, system: 0,000000 seg

Component_id: tasks
Time of switching: user 0,140000 seg, system: 0,000000 seg

Component_id: mail
Time of switching: user 0,350000 seg, system: 0,000000 seg

And later, when we do a lot of swiching, time increase (both mail and task):

Component_id: mail
Time of switching: user 0,450000 seg, system: 0,010000 seg

Component_id: tasks
Time of switching: user 0,180000 seg, system: 0,000000 seg

Component_id: mail
Time of switching: user 0,460000 seg, system: 0,000000 seg

Component_id: tasks
Time of switching: user 0,240000 seg, system: 0,010000 seg

Component_id: mail
Time of switching: user 0,550000 seg, system: 0,000000 seg

Component_id: tasks
Time of switching: user 0,250000 seg, system: 0,000000 seg

Then, I tested again mail-memo switch. No more identical times (like
the first test):

Component_id: mail
Time of switching: user 0,390000 seg, system: 0,000000 seg

Component_id: memos
Time of switching: user 0,160000 seg, system: 0,000000 seg

Component_id: mail
Time of switching: user 0,430000 seg, system: 0,000000 seg

Component_id: memos
Time of switching: user 0,240000 seg, system: 0,000000 seg

Component_id: mail
Time of switching: user 0,440000 seg, system: 0,010000 seg

Component_id: memos
Time of switching: user 0,250000 seg, system: 0,000000 seg

–> Any pattern?? Don’t know…

Let’s try other tests.

I put an extra button on the ESidebar. When it’s selected, it switches 100 times to the component mail.
It’s funny; the first and the second call takes:
Time of switching: user 0,420000 seg, system: 0,050000 seg
Time of switching: user 0,320000 seg, system: 0,000000 seg
And the last call #100:
Time of switching: user 1,340000 seg, system: 0,000000 seg
Note that the time increases for each new call. WHY?

More timing tests will be needed.
And I need a trace of this time increasing too!

Advertisements

7 Comments »

  1. Dave Malcolm said

    Have you automated the component switching yet? I wrote a Dogtail script for this at the 2005 GNOME Summit; it’s in GNOME CVS here:
    http://cvs.gnome.org/viewcvs/dogtail/examples/evolution-test-switching-components.py?view=markup

  2. m3gumi said

    Well, I automated it via coding… Thanks for the link, I’ll consider it if I have more to automate.

  3. This day I find some files of free porn video download.

  4. jeatutWag said

    m3gumi.wordpress.com – the most necessary site

    Good night
    I like your great site – m3gumi.wordpress.com .

    Thank you, I will add it to my bookmarks

    best regards

    Nelson

  5. popular free ringtones

    http://www.thehotstop.info

    signature…

  6. AltaGid said

    Hello! Help solve the problem.
    Very often try to enter the site, but says that the password is not correct.
    Regrettably use of remembering. Give like to be?
    Thank you!

  7. dralandex said

    FREE Medical Consultation. Saturday Delivery Now Available. 24/7 Toll Free Customer Support & 24/7 Live Chat.
    Discreet source for FDA approved prescriptions. FedEx Shipping on All Orders. Reorder Discounts on Future Orders & Live Order Tracking. Buy Viagra.

RSS feed for comments on this post · TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: