Why does navigator.credentials.get request take a long time? - credentials

It takes about 20-25 seconds for navigator.credentials.get to come back. Is there to make this faster?

Related

Node send text after X amount of time?

Let's say you have a parking meter app. User selects an amount of time and pays. 20 minutes before their time is up you want to send them a text via Twilio that their time is almost up. I'm not concerned about the payment or text part. What's the best way to do the timing aspect in Node that triggers the function that sends the text 20min before their time is up? Im aware of setTimeout, but is this a scalable method of handling this? IIRC, setTimeout doesn't execute at exactly the end of it's timer, but is dependant on when it can execute within the event loop. Let's assume you may need a couple hundred timers running at once and your server is realtively busy with other users triggering other callbacks and async functions. Also, the text doesn't necessarily have to be sent at exactly 20min before their time is up, a couple minutes margin of error would be acceptable. Thanks for any help!

Docs API sometimes takes long to respond

Anyone know why sometimes the Google Sheets API takes a long time to respond? So long that it sometimes times out in my database (Greater than 80seconds).
https://docs.google.com/spreadsheets/export?id=[SHEET-ID]&exportFormat=csv
It just says "Waiting for docs.google.com..." and it can vary from a very quick wait to a very long wait.
My file is very small.

What is a reasonable amount of time to wait when making concurrent requests?

I'm working on a crawler and I've noticed that by setting the length of time for waiting 1 minute per request has made the application more reliable and I now get fewer connection resets. Can you recommend a reasonable amount of time to wait? I think 1 minute is quite the belts and braces approach and I would like to reduce this ideally.

Difference between Think time and Pacing Time in Performace testing

Pacing is used to achieve X number of iterations in X minutes, But I'm able to achieve x number of iterations in X minutes or x hours or x seconds by specifying only think time without using pacing time.
I want to know the actual difference between think time and pacing time? pacing time is necessary to mention between iterations? what this pacing time does?
Think time is a delay added after iteration is complete and before the next one is started. The iteration request rate depends on the sum of the response time and the think time. Because the response time can vary depending on a load level, iteration request rate will vary as well.
For constant request rate, you need to use pacing. Unlike think time, pacing adds a dynamically determined delay to keep iteration request rate constant while the response time can change.
For example, to achieve 3 iteration in 2 minutes, pacing time should be 2 x 60 / 3 = 40 seconds. Here's an example how to use pacing in our tool http://support.stresstimulus.com/display/doc46/Delay+after+the+Test+Case
Think Time
it introduces an element of realism into the test execution.
With think time removed, as is often the case in stress testing, execution speed and throughput can increase tenfold, rapidly bringing an application infrastructure that can comfortably deal with a thousand real users to its knees.
always include think time in a load test.
think time influences the rate of transaction execution
Pacing
another way of affecting the execution of a performance test
affects transaction throughput

libspotify: log out time

How long does it usually take between calling sp_session_logout and the callback logged_out gets called? From my experience, sometimes it's fast, but sometimes it takes few seconds. For example, sometimes search takes longer, browse is ok.
Thanks.
From my experience, sometimes it's fast, but sometimes it takes few seconds.
That's your answer. It takes "some time". Logging out does a bunch of stuff like flushing disk caches and so on as well as disconnecting the user from the service.

Resources