Skip to content

Instantly share code, notes, and snippets.

@hgomez
Last active March 10, 2024 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hgomez/508618256065f49b856ef23db91e2ee2 to your computer and use it in GitHub Desktop.
Save hgomez/508618256065f49b856ef23db91e2ee2 to your computer and use it in GitHub Desktop.
MacBookPro 5.3 / OSX Monterey (thanks to OpenCore Legacy Patcher)

MacBookPro 5.3 - CPU Core2Duo 2.66Ghz

henri@OldMBP-Henri Downloads % sysctl -n machdep.cpu.brand_string
Intel(R) Core(TM)2 Duo CPU     T9600  @ 2.80GHz

OSX Montery

henri@OldMBP-Henri ~ % sw_vers
ProductName:	macOS
ProductVersion:	12.7.3
BuildVersion:	21H1015

Tomcat 8.5.99 benchs

Java 17

openjdk version "17.0.9" 2023-10-17 LTS
OpenJDK Runtime Environment Zulu17.46+19-CA (build 17.0.9+8-LTS)
OpenJDK 64-Bit Server VM Zulu17.46+19-CA (build 17.0.9+8-LTS, mixed mode, sharing)
ab -n 10000 -c 25 http://localhost:8080/examples/servlets/servlet/HelloWorldExample
This is ApacheBench, Version 2.3 <$Revision: 1903618 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:
Server Hostname:        localhost
Server Port:            8080

Document Path:          /examples/servlets/servlet/HelloWorldExample
Document Length:        395 bytes

Concurrency Level:      25
Time taken for tests:   3.499 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      5840000 bytes
HTML transferred:       3950000 bytes
Requests per second:    2857.58 [#/sec] (mean)
Time per request:       8.749 [ms] (mean)
Time per request:       0.350 [ms] (mean, across all concurrent requests)
Transfer rate:          1629.71 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    4   6.4      3     115
Processing:     1    5   8.1      4     130
Waiting:        0    4   7.5      3     129
Total:          3    9  10.4      6     134

Percentage of the requests served within a certain time (ms)
  50%      6
  66%      7
  75%      9
  80%     10
  90%     12
  95%     13
  98%     19
  99%     39
 100%    134 (longest request)

Tomcat 9.0.86

henri@OldMBP-Henri Downloads % ab -n 10000 -c 25 http://localhost:8080/examples/servlets/servlet/HelloWorldExample
This is ApacheBench, Version 2.3 <$Revision: 1903618 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:
Server Hostname:        localhost
Server Port:            8080

Document Path:          /examples/servlets/servlet/HelloWorldExample
Document Length:        395 bytes

Concurrency Level:      25
Time taken for tests:   4.435 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      5840000 bytes
HTML transferred:       3950000 bytes
Requests per second:    2254.76 [#/sec] (mean)
Time per request:       11.088 [ms] (mean)
Time per request:       0.444 [ms] (mean, across all concurrent requests)
Transfer rate:          1285.92 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    5   7.3      3     103
Processing:     1    6   9.0      4     105
Waiting:        0    4   6.3      3     101
Total:          3   11  12.2      8     127

Percentage of the requests served within a certain time (ms)
  50%      8
  66%     10
  75%     11
  80%     12
  90%     17
  95%     23
  98%     40
  99%     82
 100%    127 (longest request)

Tomcat 10.1.19

henri@OldMBP-Henri Downloads % ab -n 10000 -c 25 http://localhost:8080/examples/servlets/servlet/HelloWorldExample
This is ApacheBench, Version 2.3 <$Revision: 1903618 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:
Server Hostname:        localhost
Server Port:            8080

Document Path:          /examples/servlets/servlet/HelloWorldExample
Document Length:        395 bytes

Concurrency Level:      25
Time taken for tests:   3.919 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      5840000 bytes
HTML transferred:       3950000 bytes
Requests per second:    2551.39 [#/sec] (mean)
Time per request:       9.799 [ms] (mean)
Time per request:       0.392 [ms] (mean, across all concurrent requests)
Transfer rate:          1455.09 [Kbytes/sec] received

Connection Times (ms)
             min  mean[+/-sd] median   max
Connect:        0    4  11.4      3     331
Processing:     1    6  19.6      4     333
Waiting:        0    4  14.3      3     333
Total:          2   10  22.9      6     340

Percentage of the requests served within a certain time (ms)
 50%      6
 66%      7
 75%      9
 80%     10
 90%     12
 95%     13
 98%     18
 99%     30
100%    340 (longest request)
@hgomez
Copy link
Author

hgomez commented Mar 10, 2024

I can even play with Java Mission Control and Flight Recorder ;)

jfr-20240310

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment