Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
JSONAPI and RESTful Web Services performance comparison
====================================================================================================
AUTHENTICATED
====================================================================================================
>$ ab -v1 -k -c8 -n10 -A admin:admin http://d8dev.local/api/node/article/900b681b-581a-4624-9ff6-99cc865df429\?_format\=api_json\&include\=uid,uid.user_picture,field_tags
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking d8dev.local (be patient).....done
Server Software: Apache/2.4.7
Server Hostname: d8dev.local
Server Port: 80
Document Path: /api/node/article/900b681b-581a-4624-9ff6-99cc865df429?_format=api_json&include=uid,uid.user_picture,field_tags
Document Length: 13446 bytes
Concurrency Level: 8
Time taken for tests: 1.151 seconds
Complete requests: 10
Failed requests: 0
Keep-Alive requests: 0
Total transferred: 142130 bytes
HTML transferred: 134460 bytes
Requests per second: 8.69 [#/sec] (mean)
Time per request: 920.484 [ms] (mean)
Time per request: 115.061 [ms] (mean, across all concurrent requests)
Transfer rate: 120.63 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 0
Processing: 261 782 272.9 915 927
Waiting: 255 739 254.3 858 873
Total: 261 782 273.0 915 927
Percentage of the requests served within a certain time (ms)
50% 915
66% 921
75% 923
80% 925
90% 927
95% 927
98% 927
99% 927
100% 927 (longest request)
====================================================================================================
UNCACHED (Response -> Cache-Control: must-revalidate, no-cache, private)
Disabled: Internal Page Cache and Dynamic Page Cache
====================================================================================================
>$ ab -k -c8 -n10 -A admin:admin http://d8dev.local/api/node/article/900b681b-581a-4624-9ff6-99cc865df429\?_format\=api_json\&include\=uid,uid.user_picture,field_tags
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking d8dev.local (be patient).....done
Server Software: Apache/2.4.7
Server Hostname: d8dev.local
Server Port: 80
Document Path: /api/node/article/900b681b-581a-4624-9ff6-99cc865df429?_format=api_json&include=uid,uid.user_picture,field_tags
Document Length: 13446 bytes
Concurrency Level: 8
Time taken for tests: 1.822 seconds
Complete requests: 10
Failed requests: 0
Keep-Alive requests: 0
Total transferred: 141840 bytes
HTML transferred: 134460 bytes
Requests per second: 5.49 [#/sec] (mean)
Time per request: 1457.370 [ms] (mean)
Time per request: 182.171 [ms] (mean, across all concurrent requests)
Transfer rate: 76.04 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 378 1249 454.7 1469 1491
Waiting: 371 1212 438.4 1408 1476
Total: 378 1249 454.8 1469 1492
Percentage of the requests served within a certain time (ms)
50% 1469
66% 1475
75% 1482
80% 1486
90% 1492
95% 1492
98% 1492
99% 1492
100% 1492 (longest request)
====================================================================================================
AUTHENTICATED
====================================================================================================
>$ ab -k -c8 -n10 -A admin:admin http://d8dev.local/node/2100\?_format\=hal_json
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking d8dev.local (be patient).....done
Server Software: Apache/2.4.7
Server Hostname: d8dev.local
Server Port: 80
Document Path: /node/2100?_format=hal_json
Document Length: 9563 bytes
Concurrency Level: 8
Time taken for tests: 1.108 seconds
Complete requests: 10
Failed requests: 0
Keep-Alive requests: 0
Total transferred: 101700 bytes
HTML transferred: 95630 bytes
Requests per second: 9.02 [#/sec] (mean)
Time per request: 886.553 [ms] (mean)
Time per request: 110.819 [ms] (mean, across all concurrent requests)
Transfer rate: 89.62 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 248 750 262.3 870 917
Waiting: 242 725 253.5 835 910
Total: 248 750 262.4 870 917
Percentage of the requests served within a certain time (ms)
50% 870
66% 873
75% 877
80% 888
90% 917
95% 917
98% 917
99% 917
100% 917 (longest request)
----------------------------------------------------------------------------------------------------
>$ ab -k -c8 -n10 -A admin:admin http://d8dev.local/user/1105\?_format\=hal_json
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking d8dev.local (be patient).....done
Server Software: Apache/2.4.7
Server Hostname: d8dev.local
Server Port: 80
Document Path: /user/1105?_format=hal_json
Document Length: 1252 bytes
Concurrency Level: 8
Time taken for tests: 1.042 seconds
Complete requests: 10
Failed requests: 0
Keep-Alive requests: 0
Total transferred: 18810 bytes
HTML transferred: 12520 bytes
Requests per second: 9.60 [#/sec] (mean)
Time per request: 833.442 [ms] (mean)
Time per request: 104.180 [ms] (mean, across all concurrent requests)
Transfer rate: 17.63 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 0
Processing: 218 719 262.9 851 851
Waiting: 215 710 259.3 837 850
Total: 218 719 263.0 851 852
Percentage of the requests served within a certain time (ms)
50% 851
66% 851
75% 851
80% 851
90% 852
95% 852
98% 852
99% 852
100% 852 (longest request)
----------------------------------------------------------------------------------------------------
>$ ab -k -c8 -n10 -A admin:admin http://d8dev.local/entity/file/156\?_format\=hal_json
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking d8dev.local (be patient).....done
Server Software: Apache/2.4.7
Server Hostname: d8dev.local
Server Port: 80
Document Path: /entity/file/156?_format=hal_json
Document Length: 1093 bytes
Concurrency Level: 8
Time taken for tests: 1.058 seconds
Complete requests: 10
Failed requests: 0
Keep-Alive requests: 0
Total transferred: 17040 bytes
HTML transferred: 10930 bytes
Requests per second: 9.45 [#/sec] (mean)
Time per request: 846.605 [ms] (mean)
Time per request: 105.826 [ms] (mean, across all concurrent requests)
Transfer rate: 15.72 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 0
Processing: 226 722 260.2 847 863
Waiting: 226 718 258.8 842 863
Total: 226 722 260.3 847 863
Percentage of the requests served within a certain time (ms)
50% 847
66% 848
75% 849
80% 856
90% 863
95% 863
98% 863
99% 863
100% 863 (longest request)
====================================================================================================
UNCACHED (Response -> Cache-Control: must-revalidate, no-cache, private)
Disabled: Internal Page Cache and Dynamic Page Cache
====================================================================================================
>$ ab -k -c8 -n10 -A admin:admin http://d8dev.local/node/2100\?_format\=hal_json
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking d8dev.local (be patient).....done
Server Software: Apache/2.4.7
Server Hostname: d8dev.local
Server Port: 80
Document Path: /node/2100?_format=hal_json
Document Length: 9563 bytes
Concurrency Level: 8
Time taken for tests: 1.344 seconds
Complete requests: 10
Failed requests: 0
Keep-Alive requests: 0
Total transferred: 101410 bytes
HTML transferred: 95630 bytes
Requests per second: 7.44 [#/sec] (mean)
Time per request: 1075.061 [ms] (mean)
Time per request: 134.383 [ms] (mean, across all concurrent requests)
Transfer rate: 73.69 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 0
Processing: 284 924 336.0 1091 1101
Waiting: 276 884 318.1 1032 1059
Total: 284 925 336.1 1092 1101
Percentage of the requests served within a certain time (ms)
50% 1092
66% 1099
75% 1100
80% 1101
90% 1101
95% 1101
98% 1101
99% 1101
100% 1101 (longest request)
----------------------------------------------------------------------------------------------------
>$ ab -k -c8 -n10 -A admin:admin http://d8dev.local/user/1105\?_format\=hal_json
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking d8dev.local (be patient).....done
Server Software: Apache/2.4.7
Server Hostname: d8dev.local
Server Port: 80
Document Path: /user/1105?_format=hal_json
Document Length: 1252 bytes
Concurrency Level: 8
Time taken for tests: 1.210 seconds
Complete requests: 10
Failed requests: 0
Keep-Alive requests: 0
Total transferred: 18520 bytes
HTML transferred: 12520 bytes
Requests per second: 8.27 [#/sec] (mean)
Time per request: 967.748 [ms] (mean)
Time per request: 120.968 [ms] (mean, across all concurrent requests)
Transfer rate: 14.95 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 0
Processing: 270 827 291.7 976 979
Waiting: 270 824 289.9 963 978
Total: 270 827 291.7 976 979
Percentage of the requests served within a certain time (ms)
50% 976
66% 978
75% 979
80% 979
90% 979
95% 979
98% 979
99% 979
100% 979 (longest request)
----------------------------------------------------------------------------------------------------
>$ ab -k -c8 -n10 -A admin:admin http://d8dev.local/entity/file/156\?_format\=hal_json
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking d8dev.local (be patient).....done
Server Software: Apache/2.4.7
Server Hostname: d8dev.local
Server Port: 80
Document Path: /entity/file/156?_format=hal_json
Document Length: 1093 bytes
Concurrency Level: 8
Time taken for tests: 1.383 seconds
Complete requests: 10
Failed requests: 0
Keep-Alive requests: 0
Total transferred: 16920 bytes
HTML transferred: 10930 bytes
Requests per second: 7.23 [#/sec] (mean)
Time per request: 1106.318 [ms] (mean)
Time per request: 138.290 [ms] (mean, across all concurrent requests)
Transfer rate: 11.95 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 0
Processing: 269 962 365.0 1136 1153
Waiting: 268 953 360.5 1114 1152
Total: 269 962 365.1 1136 1153
Percentage of the requests served within a certain time (ms)
50% 1136
66% 1144
75% 1149
80% 1150
90% 1153
95% 1153
98% 1153
99% 1153
100% 1153 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment