Determining typing latency


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Determining typing latency
# 1  
Old 07-16-2011
Determining typing latency

Hi all,

When I use an editor (vi) that is spawned in a remote server, visually I could see the latency between typing a character/word and being displayed on the terminal. I could see this visually but how do I get a metric on this or how to quantify this?

As expected, when I type in a editor spawned in my local desktop there is no latency / there is latency that I cannot observe optically (as you know it looks like almost the same event - therefore typing a character and the character to appear on the screen)

Any pointers on how to quantify the typing latency?

I tried with wpm (words per minute), sometimes since the latency is high I am not really convinced whether that is a right metric.

Pointers please. Thanks
# 2  
Old 07-16-2011
A bit on the side this answer, but you could try the netrw plugin to mitigate this:

Vim documentation: pi_netrw
These 2 Users Gave Thanks to jostber For This Post:
# 3  
Old 07-16-2011
I'd think a simple ping time would be a representative measure of how much delay you get, since the delay is caused by the information that needs to get transmitted through network.
# 4  
Old 07-17-2011
Quote:
Originally Posted by mirni
I'd think a simple ping time would be a representative measure of how much delay you get, since the delay is caused by the information that needs to get transmitted through network.
Thanks. I thought of this gropher first but am not really sure whether this is the right one to use for relative metric.

For a region say A, I ping to a local box in region 'A' and ping to remote box in region 'B' which involves a WAN latency. Can I use the average ping metrics to these boxes and say that my typing latency is 'x' times more in remote box when compared to the latency in local box?

Is it a right metric to use?
# 5  
Old 07-17-2011
If you need a more complete overview of latency and network statistics, you can use Smokeping:

Download Smokeping Here
# 6  
Old 07-17-2011
Is there a particular reason you are after a relative metric? Why not look at absolute delay?
I mean, as you said before, the delay on a local box is super small, practically zero. If you'll try to calculate a quotient (remote delay)/(local delay), you'll get huge numbers, and very large inaccuracy.
An absolute measure of the delay would be a much more accurate one, in terms of numerical stability.
However, I believe the ping echoes are given lower priority than let's say, the data being transferred through ssh -X session, so ping need not be the same as your text editing delay, nevertheless, under normal network and processing load, it should come pretty close.
# 7  
Old 07-17-2011
I agree with the obvious that the only real concern is network latency. To measure this, you can just use ping (or any similar network tool), which is good enough unless you are working on some super scientific latency research about how vi performs over a network.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Red Hat

Memory release latency issue

I have an application that routinely alloc() and realloc() gigabyte blocks of memory for image processing applications; specifically performing rotations of huge images, or creating/ deleting huge image buffers to contain multiple images. Immediately upon completion of an operation I call free() to... (9 Replies)
Discussion started by: imagtek
9 Replies

2. Solaris

Latency Test

Hi every one, we have a set up in solaris 8 and 9 and running many cshell scripts.. we are migrate to AIX . Now, i want to know the latency difference between two boxes(Solaris and AIX). Kindly help me to , how to do Latency test.. (2 Replies)
Discussion started by: Madhu Siddula
2 Replies

3. AIX

Latency Test

Hi every one, we have a set up in solaris 8 and 9 and running many cshell scripts.. we are migrate to AIX . Now, i want to know the latency difference between two boxes(Solaris and AIX). Kindly help me to , how to do Latency test.. (0 Replies)
Discussion started by: Madhu Siddula
0 Replies

4. UNIX for Dummies Questions & Answers

No $ when typing cw

Hi As a dummy my question is very simple. When typing cw I've read (many times) that a '$' should appear at the end of the word I'm about to change. However, it doesn't, and in my case the word is instantly deleted and so ready to be changed! Can somebody tell me why this is, or maybe I... (4 Replies)
Discussion started by: joesh
4 Replies

5. Cybersecurity

iptables latency evaluation

Hello guys, I'm actually working on my master thesis which has for subject the evaluation of virtual firewall in a cloud environment. To do so, I installed my own cloud using OpenNebula (as a frontend) and Xen (as a Node) on two different machines. The Xen machine is my virtual firewall thanks... (2 Replies)
Discussion started by: Slaughterman
2 Replies
Login or Register to Ask a Question