You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/11/14 17:00:30 UTC
[GitHub] [couchdb] nickva edited a comment on issue #2300: Check security
properties in the main transaction
nickva edited a comment on issue #2300: Check security properties in the main transaction
URL: https://github.com/apache/couchdb/pull/2300#issuecomment-553654342
Quick benchmark with this PR:
prototype/fdb-layer (FDB master):
```
time ./add_docs.py
> db url: http://adm:pass@127.0.0.1:15984
> db:info {u'update_seq': u'00000002313b676000000000', u'disk_size': 0, u'sizes': {u'active': 0, u'external': 2, u'file': 0}, u'purge_seq': 0, u'doc_count': 10000, u'compact_running': False, u'cluster': {u'q': 0, u'r': 0, u'w': 0, u'n': 0}, u'db_name': u'db', u'disk_format_version': 0, u'instance_start_time': u'0', u'other': {u'data_size': 2}, u'data_size': 0, u'doc_del_count': 0}
real 0m55.825s
user 0m10.583s
sys 0m3.986s
```
This PR:
```
time ./add_docs.py
> db url: http://adm:pass@127.0.0.1:15984
> db:info {u'update_seq': u'00000002313b676000000000', u'disk_size': 0, u'sizes': {u'active': 0, u'external': 2, u'file': 0}, u'purge_seq': 0, u'doc_count': 10000, u'compact_running': False, u'cluster': {u'q': 0, u'r': 0, u'w': 0, u'n': 0}, u'db_name': u'db', u'disk_format_version': 0, u'instance_start_time': u'0', u'other': {u'data_size': 2}, u'data_size': 0, u'doc_del_count': 0}
real 0m34.587s
user 0m10.486s
sys 0m4.118s
```
add_docs.py: https://gist.github.com/nickva/5d88c389d45ab538950a5e0f34b7d2ae
First ran script once to create and populate db then run again to read the documents
With the chttpd_auth_request security check back in got:
```
real 0m44.132s
user 0m11.676s
sys 0m4.437s
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services