The 1.connect function call fires the TCP three-way handshake protocol, and the invocation failure returns the following three cases:
The 1.TCP client did not receive a SYN section and returned a etimeout error. If you send a SYN section, wait for 6s no response, send another one, wait for 24s no response, send another, wait for 75s no response to return this error.
2. If the response to the client SYN is RST (indicating reset), Indicates that the ser
Select sort
0.209ms
3.143ms
119.986ms
15131.266ms
Merge sort
0.280ms
2.847ms
9.750ms
68.401ms
Quick Sort
0.190ms
1.800ms
8.213ms
58.990ms
From the above results can be seen intuitively, four sorting algorithms in the fastest sorting performance, within 100 of the array element, everyone's performance is almost, 1ms, 1000 elements of the array has been opened the gap, but fortunately, the human response
: ' + json.stringify (res.data);
}
});
Count--;
},4000);
};
In this code, I created a proxy object, can cache Ajax request 10s, with a timer called the proxy object five times get method to send the same request, the final printing effect is as follows:As a result, the entire code executes 24s, and the time that the agent sends the request is 4s, 8s, 12s, 16s and 20s. Because the agent's cache is valid for 10s, and 4s is the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.