Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-11-15 19:14:54

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Textpattern 4.8.3 Apache Bench

Yo,

Textpattern 4.8.3 is on Jessie, ran apache bench on it to compare with 4.6.2, the last release I used.

bert@jessie:~$ ab -n 1000 -c 10 http://localhost/projects/textpattern-483/

Document Path:          /projects/textpattern-483/
Document Length:        11952 bytes

Concurrency Level:      10
Time taken for tests:   15.798 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      12185000 bytes
HTML transferred:       11952000 bytes
Requests per second:    63.30 [#/sec] (mean)
Time per request:       157.975 [ms] (mean)
Time per request:       15.798 [ms] (mean, across all concurrent requests)
Transfer rate:          753.24 [Kbytes/sec] received

(Code is Poetry)

bert@jessie:~$ ab -n 1000 -c 10 http://localhost/projects/wordpress/

Document Path:          /projects/wordpress/
Document Length:        11293 bytes

Concurrency Level:      10
Time taken for tests:   64.579 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      11540000 bytes
HTML transferred:       11293000 bytes
Requests per second:    15.48 [#/sec] (mean)
Time per request:       645.788 [ms] (mean)
Time per request:       64.579 [ms] (mean, across all concurrent requests)
Transfer rate:          174.51 [Kbytes/sec] received

Like wow, it’s faster than 4.6.2, on similar hardware and software. Did an apt-get update/upgrade on Debian Jessie yesterday, quite a number of packages were installed but I wouldn’t think that much has changed within one Debian release.

From txp.wtf – when I ran a comparison against Wordpress (the Code is Poetry people).

bert@jessie:~$ ab -n 1000 -c 10 http://localhost/textpattern/

Document Length: 11769 bytes
Time taken for tests: 6.104 seconds
Total transferred: 12,010,000 bytes
Requests per second: 163.82 [sec] (mean)
Transfer rate: 1921.36 [Kbytes/sec] received

Damn, that’s insane, will continue to investigate and do WP next and compare.

Edit: Anyway, sadly, 4.8.3 is slower than 4.6.2, but still faster than WP. Need to see why the benchmarks are slower, could be some configuration changes done by the apt-get update/upgrade process.

Last edited by hcgtv (2020-11-15 21:33:36)

Offline

#2 2020-11-16 05:32:10

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Textpattern 4.8.3 Apache Bench

Ok, wasn’t satisfied running these benchmarks on an older operating system.

Upgraded from Debian Jessie(8) to Stretch(9) and then to Buster(10)

Apache 2.4.38
MariaDB 10.3.25
PHP 7.3.19

bert@jessie:~$ ab -n 1000 -c 10 http://localhost/projects/textpattern/

Document Path:          /projects/textpattern/ - (4.6.2)
Document Length:        11932 bytes

Concurrency Level:      10
Time taken for tests:   5.329 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      12173000 bytes
HTML transferred:       11932000 bytes
Requests per second:    187.64 [#/sec] (mean)
Time per request:       53.293 [ms] (mean)
Time per request:       5.329 [ms] (mean, across all concurrent requests)
Transfer rate:          2230.63 [Kbytes/sec] received


bert@jessie:~$ ab -n 1000 -c 10 http://localhost/projects/textpattern-483/

Document Path:          /projects/textpattern-483/ - (4.8.3)
Document Length:        11953 bytes

Concurrency Level:      10
Time taken for tests:   7.410 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      12186000 bytes
HTML transferred:       11953000 bytes
Requests per second:    134.96 [#/sec] (mean)
Time per request:       74.098 [ms] (mean)
Time per request:       7.410 [ms] (mean, across all concurrent requests)
Transfer rate:          1606.04 [Kbytes/sec] received

There you have it, TXP 4.6.2 is faster than 4.8.3, and on new versions of the LAMP stack.

These are both default installs, the only thing I changed was to make the Production status Live.

Next up, I’ll install the latest Code is Poetry and compare.

Offline

#3 2020-11-16 05:58:35

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Textpattern 4.8.3 Apache Bench

Code is Poetry ;)

bert@jessie:~$ ab -n 1000 -c 10 http://localhost/projects/wordpress/

Document Path:          /projects/wordpress/ (5.5.3)
Document Length:        26160 bytes

Concurrency Level:      10
Time taken for tests:   26.299 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      26407000 bytes
HTML transferred:       26160000 bytes
Requests per second:    38.02 [#/sec] (mean)
Time per request:       262.993 [ms] (mean)
Time per request:       26.299 [ms] (mean, across all concurrent requests)
Transfer rate:          980.56 [Kbytes/sec] received

Well you can thank your lucky stars that WP is bloated and slow.

The only thing WP had going for it was Themes back in the day, it reached a rapid rate of popularity when Movable Type screwed up.

Here’s to hoping that Textpattern is poised for a rapid rate of popularity when Wordpress screws up.

Offline

#4 2020-11-16 07:14:35

etc
Developer
Registered: 2010-11-11
Posts: 5,257
Website GitHub

Re: Textpattern 4.8.3 Apache Bench

Oh? I would expect 4.8 be 10% slower than 4.6 (extra features/language strings), but not this slower. Many thanks for testing, Bert, will search for the bottlenecks.

Offline

#5 2020-11-16 08:34:14

etc
Developer
Registered: 2010-11-11
Posts: 5,257
Website GitHub

Re: Textpattern 4.8.3 Apache Bench

Bert, would you mind retesting 4.6.2 and 4.8.3 with a common theme (this of 4.6.2)? Also, you might want to switch 4.8.3 Enable short tag support? pref off, for more justice. Thank you!

Offline

#6 2020-11-16 09:37:33

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Textpattern 4.8.3 Apache Bench

TXP 4.6.2 and 4.8.3 are very similar themes, it’s what Phil created.

enable_short_tags 0

bert@jessie:~$ ab -n 1000 -c 10 http://localhost/projects/textpattern-483/

Server Software:        Apache/2.4.38
Server Hostname:        localhost
Server Port:            80

Document Path:          /projects/textpattern-483/
Document Length:        11953 bytes

Concurrency Level:      10
Time taken for tests:   7.533 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      12186000 bytes
HTML transferred:       11953000 bytes
Requests per second:    132.75 [#/sec] (mean)
Time per request:       75.328 [ms] (mean)
Time per request:       7.533 [ms] (mean, across all concurrent requests)
Transfer rate:          1579.82 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:    27   74  27.6     69     300
Waiting:       24   69  26.2     66     300
Total:         27   74  27.6     69     300

Percentage of the requests served within a certain time (ms)
  50%     69
  66%     76
  75%     80
  80%     85
  90%     97
  95%    117
  98%    147
  99%    185
 100%    300 (longest request)

Offline

#7 2020-11-16 09:44:01

etc
Developer
Registered: 2010-11-11
Posts: 5,257
Website GitHub

Re: Textpattern 4.8.3 Apache Bench

hcgtv wrote #326813:

TXP 4.6.2 and 4.8.3 are very similar themes, it’s what Phil created.

Internally they are different, 4.8.3 looks more complex.

Offline

#8 2020-11-16 13:30:11

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Textpattern 4.8.3 Apache Bench

etc wrote #326815:

Internally they are different, 4.8.3 looks more complex.

Ok, but the document length of the front page in 4.6.2 and 4.8.3 are about the same size.

Heck the new Wordpress look is as spartan as you can get for a frontpage, and they are slow as sh*t.

I just got back, let me delve into 4.8.3 and see where the difference in speed is, compare settings, maybe some changed from one release to another, is logging enabled by default, etc.

Offline

#9 2020-11-16 14:50:24

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,296
GitHub

Re: Textpattern 4.8.3 Apache Bench

Also, as an aside: 4.6 pulled in front-side font(s) from https://fonts.googleapis.com, along with associated style sheets etc, whereas 4.8 uses locally installed fonts. I’d be curious to see if the ab page payload for 4.6.2 includes those remote fonts.

Then there’s http/2 pipelining to consider…TLS negotiation & overhead…which cipher to use…web server rate limiters…web application firewalls…web server memory usage…underlying infrastructure…lots of other variables.

Offline

#10 2020-11-16 14:53:50

etc
Developer
Registered: 2010-11-11
Posts: 5,257
Website GitHub

Re: Textpattern 4.8.3 Apache Bench

That’s what I get with identical page/form setups:

Document Path:          /textpattern484/
Document Length:        11671 bytes

Concurrency Level:      10
Time taken for tests:   7.172 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      11930000 bytes
HTML transferred:       11671000 bytes
Requests per second:    139.43 [#/sec] (mean)
Time per request:       71.723 [ms] (mean)
Time per request:       7.172 [ms] (mean, across all concurrent requests)
Transfer rate:          1624.36 [Kbytes/sec] received

----------------------------------------------------------

Document Path:          /textpattern462/
Document Length:        11644 bytes

Concurrency Level:      10
Time taken for tests:   6.398 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      11911000 bytes
HTML transferred:       11644000 bytes
Requests per second:    156.31 [#/sec] (mean)
Time per request:       63.976 [ms] (mean)
Time per request:       6.398 [ms] (mean, across all concurrent requests)
Transfer rate:          1818.15 [Kbytes/sec] received

This is closer to the expected 10% slowdown, but still annoying.

Offline

#11 2020-11-16 15:40:14

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Textpattern 4.8.3 Apache Bench

Hola Senores,

Playing with TXP 4.8.3, comparing it to 4.6.2, what changed?

One of the big changes was in the css.php, so I changed 4.8.3 to grab the stylesheet from disk. Not much of a difference.

There are other additions to the new default page:

<meta name="robots" content="index, follow">
<link rel="canonical" href="http://jessie/projects/textpattern-483/">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"headline": "My site",

"url": "http:\/\/jessie\/projects\/textpattern-483\/"
 }
</script>

meta name and canonical where 1 liners in 4.6.2 in the HTML output, after if statements determined the output. The script running in this section is new to 4.8.3, so I made this look like 4.6.2, no script. Not much of a difference.

Next up, take the pages, forms and style from 4.6.2 and put them in 4.8.3 – this will let me play more with Themes, but I don’t think it will matter much, but hey, worth a try.

Offline

#12 2020-11-16 21:14:15

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Textpattern 4.8.3 Apache Bench

Textpattern 4.8.3 using the four-point-six theme, my very first one :)

bert@jessie:~$ ab -n 1000 -c 10 http://localhost/projects/textpattern-483/

Document Path:          /projects/textpattern-483/
Document Length:        8215 bytes

Concurrency Level:      10
Time taken for tests:   7.632 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      8448000 bytes
HTML transferred:       8215000 bytes
Requests per second:    131.03 [#/sec] (mean)
Time per request:       76.320 [ms] (mean)
Time per request:       7.632 [ms] (mean, across all concurrent requests)
Transfer rate:          1080.98 [Kbytes/sec] received

TXP 4.8.3 slowed up when using the theme from 4.6.

I’ll keep at it, I wonder what TXP 4..8.3 would behave like with the TXP 4.0.0 yellow theme.

Offline

Board footer

Powered by FluxBB