Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

xterm vs. urxvt scrolling speed

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
xi
n00b
n00b
Posts: 37
Joined: Sun Jan 26, 2003 12:53 pm

xterm vs. urxvt scrolling speed

  • Quote

Post by xi » Fri Aug 12, 2005 8:56 pm

hi, i just wondered why xterm scrolling is so much slower than urxvt.

i did some "benchmark":

XTERM time ls --color=auto -al /usr/bin

Code: Select all

real    0m11.580s
user    0m0.075s
sys     0m0.057s
XTERM time ls --color=auto -al /usr/bin > /dev/null

Code: Select all

real    0m0.108s
user    0m0.065s
sys     0m0.024s
(this tells me cpu is really used for displaying)

URXVT time ls --color=auto -al /usr/bin

Code: Select all

real	0m2.874s
user	0m0.069s
sys	0m0.100s
Xdefaults settings:

Code: Select all

Xcursor.theme: whiteglass
XTerm*charClass:        33:48,37:48,45-47:48,64:48
XTerm*cutNewline:       False
XTerm*cutToBeginningOfLine:     False
XTerm*scrollTtyOutput:        false
*customization: -color
XTerm*faceName:   xft:Bitstream Vera Sans Mono
XTerm*faceSize:     16
XTerm*scrollBar:    false
XTerm*reverseVideo: true
#XTerm*foreground: lightgrey
XTerm*loginShell: true
XTerm*saveLines: 10000
XTerm*cursorColor:  yellow
XTerm*utf8: 1 
XTerm*jumpScroll:               true
XTerm*multiScroll:              true
XTerm*popOnBell:        true
urxvt.font: xft:Bitstream Vera Sans Mono:size=16
urxvt.loginShell: true
urxvt.saveLines: 10000
urxvt.reverseVideo: true
urxvt*scrollBar:      false
urxvt*scrollTtyOutput:      false 
urxvt*scrollWithBuffer:      false 
urxvt*scrollTtkKeypress:   false
Top
frostschutz
Advocate
Advocate
User avatar
Posts: 2978
Joined: Tue Feb 22, 2005 11:23 am
Location: Germany

  • Quote

Post by frostschutz » Fri Aug 12, 2005 11:08 pm

Using the same benchmark:

Code: Select all

~ $ time xterm -e ls --color=auto -al /usr/bin/

real    0m1.658s
user    0m0.925s
sys     0m0.075s
~ $ time urxvt -e ls --color=auto -al /usr/bin/

real    0m0.306s
user    0m0.141s
sys     0m0.039s
~ $
However, note that 'ls --color=auto -al /usr/bin/' is a very bad choice of benchmark. The first time you execute it, it will take much longer than the runs afterwards. That's because the first ls loads stuff from disk into the VFS cache, whereas the succeeding calls can just use the cache.

Another aspect is settings. If the xterm and rxvt settings differ (e.g. size of buffer and type of fonts displayed), the comparison is worthless to begin with. On my system, these settings are about the same.

However, both scroll faster than I can read, so I don't really care about the difference :lol:
Top
geniux
Veteran
Veteran
User avatar
Posts: 1400
Joined: Thu Feb 19, 2004 6:43 am
Location: /home

  • Quote

Post by geniux » Fri Aug 12, 2005 11:32 pm

Code: Select all

% time aterm -e ls --color=auto -al /usr/bin/

real    0m0.489s
user    0m0.058s
sys     0m0.026s
% time aterm -e ls --color=auto -al /usr/bin/

real    0m0.488s
user    0m0.058s
sys     0m0.025s
Time to change to aterm guys :wink:
AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20
Top
Sleeper
l33t
l33t
User avatar
Posts: 667
Joined: Tue Nov 12, 2002 3:40 pm
Contact:
Contact Sleeper
Website

  • Quote

Post by Sleeper » Mon Aug 29, 2005 2:05 pm

geniux wrote: Time to change to aterm guys :wink:
Do you mean aterm now support anti-aliasing ?? ;)
Top
geniux
Veteran
Veteran
User avatar
Posts: 1400
Joined: Thu Feb 19, 2004 6:43 am
Location: /home

  • Quote

Post by geniux » Mon Aug 29, 2005 2:18 pm

Sleeper wrote:
geniux wrote: Time to change to aterm guys :wink:
Do you mean aterm now support anti-aliasing ?? ;)
Heh, lol, :wink:
In my dreams it does
AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20
Top
crudh
l33t
l33t
User avatar
Posts: 696
Joined: Thu May 12, 2005 11:27 pm
Location: Sundbyberg, Sweden
Contact:
Contact crudh
Website

  • Quote

Post by crudh » Mon Aug 29, 2005 2:33 pm

However, both scroll faster than I can read, so I don't really care about the difference
The difference could mean that compilation of programs, which output a lot during compilation, can take longer time in terminals where much cpu power is used for scrolling the text.

I know they did some comparisons a year ago or so and showed that gnome-terminal, which was slow as hell back then (maybe still is? :)), could take way longer in certain compiles than other terminals because of too much cpu usage for scrolling the text.
Top
frostschutz
Advocate
Advocate
User avatar
Posts: 2978
Joined: Tue Feb 22, 2005 11:23 am
Location: Germany

  • Quote

Post by frostschutz » Mon Aug 29, 2005 2:55 pm

I usually pipe that output to /dev/null (when I don't want to read it anyway) or into a file (because I can grep on it, and I don't need an awful big scrollback buffer for it).

Sometimes scrolling is slow not because of the terminal, but because of the application that's running in the terminal. I once tried to copy & paste a very big text into nano - it was slow as hell, because nano was stupid and updated the screen for every single character. I could almost read the text while it was being pasted and that went on for minutes. vim on the other hand seemed to notice that there was a lot of text and updated the screen less often, resulting in much faster operation, taking just a few seconds for the whole thing.

I totally agree that scrolling in a terminal should be fast... however, to me it doesn't make much of a difference wether it can scroll 10000 lines per second or 20000 (take or give a few zeroes). Who is supposed to read all that stuff?
Top
Post Reply

7 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic