User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Stretch slow - much slower than Jessie

Wed Mar 21, 2018 6:22 am

Stretch is noticeably slower than Jessie or wheezy. There is no debating that fact. The only question is why and how could this have passed QC?

Platform - Raspberry B
New SD Card - Samsung 32G EVO

Just doing an aptitude install of ksh and removal of wolfram-engine was painful. The GUI desktop was painfully slow to load as well.

For now I went back to Jessie or Wheezy depending on what I need the Pi for.

Is this going to be a permanent situation?
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

mattmiller
Posts: 2138
Joined: Thu Feb 05, 2015 11:25 pm

Re: Stretch slow - much slower than Jessie

Wed Mar 21, 2018 8:00 am

I think every single computer I've ever owned has got slower when the OS has been upgraded

Might have been the odd exception but I've never noticed it happen

I've always accepted this as the price of having a newer OS that does more things/better security than the old one

spl23
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 378
Joined: Fri Dec 26, 2014 11:02 am

Re: Stretch slow - much slower than Jessie

Wed Mar 21, 2018 9:02 am

Richard-TX wrote:
Wed Mar 21, 2018 6:22 am
Stretch is noticeably slower than Jessie or wheezy.
For you, perhaps.
Richard-TX wrote:
Wed Mar 21, 2018 6:22 am
There is no debating that fact.
Well, it depends what you mean by "no debating" and "fact", given this is not something that thousands of other users have noticed.
Richard-TX wrote:
Wed Mar 21, 2018 6:22 am
The only question is why and how could this have passed QC?
No, the question is why are you seeing a problem when others, including our own QC testing, aren't.
Richard-TX wrote:
Wed Mar 21, 2018 6:22 am
Platform - Raspberry B
Do you mean an original 512MB Pi 1? Because that may well be part of the problem.
Richard-TX wrote:
Wed Mar 21, 2018 6:22 am
Is this going to be a permanent situation?
Given it is not something we have seen reported anywhere else, we're not planning on changing anything.

gkreidl
Posts: 6139
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Stretch slow - much slower than Jessie

Wed Mar 21, 2018 9:04 am

Python Benchmark using Pystone for Python 2 and 3, and versions compiled with Nuitka, comparing Jessie and Stretch
( viewtopic.php?f=32&t=183829 )

Jessie:
Python 2.7: 24344.88 pystones/second
Python 3.4: 17459.89 pystones/second
Nuitka 2.7: 47243.92 pystones/second
Nuitka 3.4: 28658.92 pystones/second

Speed Comparisons:

Python 2.7 / Python 3.4: 139.43 %
Nuitka 2.7 / Python 2.7: 194.06 %
Nuitka 3.4 / Python 3.4: 164.14 %
Nuitka 2.7 / Nuitka 3.4: 164.85 %
Nuitka 2.7 / Python 3.4: 270.59 %

Stretch:
Python 2.7: 17042.64 pystones/second
Python 3.5: 14279.47 pystones/second
Nuitka 2.7: 47359.42 pystones/second
Nuitka 3.5: 26089.99 pystones/second

Speed Comparisons:

Python 2.7 / Python 3.5: 119.35 %
Nuitka 2.7 / Python 2.7: 277.89 %
Nuitka 3.5 / Python 3.5: 182.71 %
Nuitka 2.7 / Nuitka 3.5: 181.52 %
Nuitka 2.7 / Python 3.5: 331.66 %

Now a real world application: youtube-dl.
The following commands extract name of a movie and movie URL from a web page:

Fake-Binary (all in one, contains a zip with all modules as text: .py)
time ./youtube-dl -f best -e -g https://www.youtube.com/watch?v=UCt6d0SCxO4

Stretch:
real 0m9.331s
user 0m8.400s
sys 0m0.110s
Jessie
real 0m8.085s
user 0m7.200s
sys 0m0.110s

pip installation (using pyc modules)
time youtube-dl -f best -e -g https://www.youtube.com/watch?v=UCt6d0SCxO4

Stretch:
real 0m5.712s
user 0m4.790s
sys 0m0.150s

Jessie:
real 0m4.650s
user 0m3.780s
sys 0m0.160s

Using my youtube-dl server
time wget -q -O - http://127.0.0.1:9192/info?url=https:// ... Ct6d0SCxO4

Stretch:
real 0m1.663s
user 0m0.010s
sys 0m0.000s

Jessie:
real 0m1.351s
user 0m0.010s
sys 0m0.000s
Last edited by gkreidl on Sat Apr 21, 2018 8:14 am, edited 1 time in total.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

k-pi
Posts: 930
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: Stretch slow - much slower than Jessie

Wed Mar 21, 2018 9:16 am

I actually find it a faster system on my new Rpi3B+ especially using 5G wifi. :D

User avatar
pi-anazazi
Posts: 565
Joined: Fri Feb 13, 2015 9:22 pm
Location: EU

Re: Stretch slow - much slower than Jessie

Wed Mar 21, 2018 10:20 am

Yeah, and so ever-faster hardware has to compensate ever-slower software. For more than a decade I buy bigger hardware just to compensate for slowing down software.

From win 3.1 to win 95 to win xp there was development, since then there is plateau/regression. Linux I follow only for some 5 years now, but "performance gains" from new OS versions I have never experienced yet.

In general, OS is becoming more unstable (have one Raspbian stretch here always killing a webserver for switching USB-power strip after some days/weeks, which was 100% stable with wheezy and jessie). Compare openSUSE 13.2 (a master piece!) with the unstable and hardly usable trash distributed nowadays (to make people pay for Suse?).

There are no ethics in this soft-/hardware things. Nowhere.
Kind regards

anazazi


jjakob
Posts: 2
Joined: Thu Mar 22, 2018 11:32 pm

Re: Stretch slow - much slower than Jessie

Thu Mar 22, 2018 11:43 pm

Are you using the distro or installing from scratch?
When installing from scratch, people usually aren't aware that the Pi boots with the CPU governor in "powersave" mode and their CPU stays at the lower frequency (I think 900MHz) all the time, never going to 1.2GHz.
The script that does that on the distro is /etc/init.d/raspi-config which comes from the raspi-config package: https://github.com/RPi-Distro/raspi-con ... onfig.init
So installing raspi-config and rebooting will give the "performance" governor with the full expected CPU speed on demand.

It took me quite a while to figure this out as it's not documented in any clear location (on this site for example).

If the issue is slow X/GL speed, the issue may be https://github.com/RPi-Distro/raspi-config/issues/78

Return to “Raspbian”