Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6573913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:11:35+00:00 2026-05-25T15:11:35+00:00

I am just calling Synchronous call like followings a few times, checking response time..

  • 0

I am just calling Synchronous call like followings a few times, checking response time..

NSURL *url = [NSURL URLWithString:@"http://myurl.com"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];

NSDate *start=[NSDate date];
NSLog(@"Start date %@", start);

[request startSynchronous];

NSDate *end=[NSDate date];
NSLog(@"End date %@", end);

double ellapsedSeconds= [end timeIntervalSinceDate:start];
NSLog(@"response time %f", ellapsedSeconds);

Funny thing is response time is too much different between first time and others..
Is there some cache related?

2011-09-18 23:20:55.608 ON THE GO[2073:707] Start date 2011-09-18 13:20:55 +0000

2011-09-18 23:20:59.204 ON THE GO[2073:707] ASI Response test=test

2011-09-18 23:20:59.208 ON THE GO[2073:707] End date 2011-09-18 13:20:59 +0000

2011-09-18 23:20:59.209 ON THE GO[2073:707] response time 3.600945

2011-09-18 23:20:59.211 ON THE GO[2073:707] Start date 2011-09-18 13:20:59 +0000

2011-09-18 23:20:59.212 ON THE GO[2073:707] ASI Response test=test

2011-09-18 23:20:59.216 ON THE GO[2073:707] End date 2011-09-18 13:20:59 +0000

2011-09-18 23:20:59.217 ON THE GO[2073:707] response time 0.003545

2011-09-18 23:20:59.223 ON THE GO[2073:707] Start date 2011-09-18 13:20:59 +0000

2011-09-18 23:20:59.225 ON THE GO[2073:707] ASI Response test=test

2011-09-18 23:20:59.227 ON THE GO[2073:707] End date 2011-09-18 13:20:59 +0000

2011-09-18 23:20:59.228 ON THE GO[2073:707] response time 0.004832

2011-09-18 23:20:59.232 ON THE GO[2073:707] Start date 2011-09-18 13:20:59 +0000

2011-09-18 23:20:59.235 ON THE GO[2073:707] ASI Response test=test

2011-09-18 23:20:59.238 ON THE GO[2073:707] End date 2011-09-18 13:20:59 +0000

2011-09-18 23:20:59.239 ON THE GO[2073:707] response time 0.005358

2011-09-18 23:20:59.241 ON THE GO[2073:707] Start date 2011-09-18 13:20:59 +0000

2011-09-18 23:20:59.242 ON THE GO[2073:707] ASI Response test=test

2011-09-18 23:20:59.250 ON THE GO[2073:707] End date 2011-09-18 13:20:59 +0000

2011-09-18 23:20:59.251 ON THE GO[2073:707] response time 0.007573

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:11:36+00:00Added an answer on May 25, 2026 at 3:11 pm

    Probably, to confirm this add the following line after creating the request (shown)

    ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
    [request setCachePolicy:ASIDoNotWriteToCacheCachePolicy|ASIDoNotReadFromCacheCachePolicy];
    

    This will tell ASI not to read or write from the cache.

    If you then rerun the test, it should show the same time for all the requests.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What command is being run when you call bundle ? Is it just calling
I'm just creating my own AboutBox and I'm calling it using Window.ShowDialog() How do
On just one page of my site the javascript Date object won't work. Calling
I just started in this SQLAlchemy ORM and I was wondering, if after calling
I'm completely stuck with calling a method from a UIView subclass, the method just
I'm a Python beginner and have just started using packages. When you're calling a
Just checking my JS and I have an error, but I cannot see where.
Just learning the world of jquery, and all my googling gives examples like this:
Just a knowledge question which I would like to ask: For example, I have
I'm not sure which is the right way, right now I'm just calling exit(0)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.