Thanks Dean.
Here are more relevant timing, using with the --timing option...
***** original setuptools code *****
stack@tm-devstack-master-01:~/devstack$ time openstack --timing user list +----------------------------------+-----------+ | ID | Name | +----------------------------------+-----------+ | 14a80a42d7b3438faae35d2368ea1932 | placement | | 2b47ace878114a77aec6c40eecdc4f2e | demo | | 3350c86df12f46b3ae3fe2650ff551ac | nova | | 6b338058fbef4bec8d6914d068785f23 | alt_demo | | 6c7432c0c0f146df94dfa1758851b4eb | admin | | 78261b8f3d514434ae561736cb4ace88 | neutron | | b77ca01c3fa84641ab6f9ee1742347d1 | cinder | | e86b3c41d7d4411f9fbc7e42f4306ee7 | glance | +----------------------------------+-----------+
+-----------------------------------------------------+----------+ | URL | Seconds | +-----------------------------------------------------+----------+ | GET http://192.168.122.192/identity | 0.004805 | | POST http://192.168.122.192/identity/v3/auth/tokens | 0.048747 | | POST http://192.168.122.192/identity/v3/auth/tokens | 0.045331 | | GET http://192.168.122.192/identity/v3/users | 0.052543 | | Total | 0.151426 | +-----------------------------------------------------+----------+
real 0m2.581s user 0m2.220s sys 0m0.124s
==> 2.43s runtime (not counting API calls)
***** After my proposed setuptools patch *****
+-----------------------------------------------------+----------+ | URL | Seconds | +-----------------------------------------------------+----------+ | GET http://192.168.122.192/identity | 0.00484 | | POST http://192.168.122.192/identity/v3/auth/tokens | 0.050452 | | POST http://192.168.122.192/identity/v3/auth/tokens | 0.042775 | | GET http://192.168.122.192/identity/v3/users | 0.052067 | | Total | 0.150134 | +-----------------------------------------------------+----------+
real 0m1.684s user 0m1.324s sys 0m0.148s
==> 1.53s runtime (not counting API calls)
So the patch brings a 0.9s win for a setup with only 5 osc extensions (real setups have much more).
Thanks Dean.
Here are more relevant timing, using with the --timing option...
***** original setuptools code *****
stack@tm- devstack- master- 01:~/devstack$ time openstack --timing user list ------- ------- ------- ------- +------ -----+ ------- ------- ------- ------- +------ -----+ faae35d2368ea19 32 | placement | 7aec6c40eecdc4f 2e | demo | 3ae3fe2650ff551 ac | nova | c8d6914d068785f 23 | alt_demo | f94dfa1758851b4 eb | admin | 4ae561736cb4ace 88 | neutron | 1ab6f9ee1742347 d1 | cinder | f9fbc7e42f4306e e7 | glance | ------- ------- ------- ------- +------ -----+
+------
| ID | Name |
+------
| 14a80a42d7b3438
| 2b47ace878114a7
| 3350c86df12f46b
| 6b338058fbef4be
| 6c7432c0c0f146d
| 78261b8f3d51443
| b77ca01c3fa8464
| e86b3c41d7d4411
+------
+------ ------- ------- ------- ------- ------- ------- -----+- ------- --+ ------- ------- ------- ------- ------- ------- -----+- ------- --+ 192.168. 122.192/ identity | 0.004805 | 192.168. 122.192/ identity/ v3/auth/ tokens | 0.048747 | 192.168. 122.192/ identity/ v3/auth/ tokens | 0.045331 | 192.168. 122.192/ identity/ v3/users | 0.052543 | ------- ------- ------- ------- ------- ------- -----+- ------- --+
| URL | Seconds |
+------
| GET http://
| POST http://
| POST http://
| GET http://
| Total | 0.151426 |
+------
real 0m2.581s
user 0m2.220s
sys 0m0.124s
==> 2.43s runtime (not counting API calls)
***** After my proposed setuptools patch *****
stack@tm- devstack- master- 01:~/devstack$ time openstack --timing user list ------- ------- ------- ------- +------ -----+ ------- ------- ------- ------- +------ -----+ faae35d2368ea19 32 | placement | 7aec6c40eecdc4f 2e | demo | 3ae3fe2650ff551 ac | nova | c8d6914d068785f 23 | alt_demo | f94dfa1758851b4 eb | admin | 4ae561736cb4ace 88 | neutron | 1ab6f9ee1742347 d1 | cinder | f9fbc7e42f4306e e7 | glance | ------- ------- ------- ------- +------ -----+
+------
| ID | Name |
+------
| 14a80a42d7b3438
| 2b47ace878114a7
| 3350c86df12f46b
| 6b338058fbef4be
| 6c7432c0c0f146d
| 78261b8f3d51443
| b77ca01c3fa8464
| e86b3c41d7d4411
+------
+------ ------- ------- ------- ------- ------- ------- -----+- ------- --+ ------- ------- ------- ------- ------- ------- -----+- ------- --+ 192.168. 122.192/ identity | 0.00484 | 192.168. 122.192/ identity/ v3/auth/ tokens | 0.050452 | 192.168. 122.192/ identity/ v3/auth/ tokens | 0.042775 | 192.168. 122.192/ identity/ v3/users | 0.052067 | ------- ------- ------- ------- ------- ------- -----+- ------- --+
| URL | Seconds |
+------
| GET http://
| POST http://
| POST http://
| GET http://
| Total | 0.150134 |
+------
real 0m1.684s
user 0m1.324s
sys 0m0.148s
==> 1.53s runtime (not counting API calls)
So the patch brings a 0.9s win for a setup with only 5 osc extensions (real setups have much more).