Compare_lplib_pylpbugs
⇤ ← Revision 1 as of 2008-08-09 09:56:28
Size: 2162
Comment:
|
Size: 2400
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 20: | Line 20: |
(read-only access) |
|
Line 22: | Line 24: |
>>> Bug.set_connection_mode(<SERVER-const>) }}} === python-launchpad-bugs (html) === (this connection mode is used for write-access) {{{ >>> Bug = ConnectBug("html") >>> Bug.authentication = <cookie-file> |
|
Line 39: | Line 51: |
time based comparison of python-launchpad-bugs and launchpadlib
This is still work in progress. python's timeit is used.
Preparation
launchpadlib
There are two files with credentials for STAGING and EDGE, for each mode the connector is created by
>>> credentials = Credentials() >>> credentials.load(open(<file>)) >>> launchpad = Launchpad(credentials, <SERVER-const>)
python-launchpad-bugs (text)
(read-only access)
>>> Bug = ConnectBug("text") >>> Bug.set_connection_mode(<SERVER-const>)
python-launchpad-bugs (html)
(this connection mode is used for write-access)
>>> Bug = ConnectBug("html") >>> Bug.authentication = <cookie-file> >>> Bug.set_connection_mode(<SERVER-const>)
Results
20080809
launchpadlib: lp:launchpadlib (rev8)
python-launchpad-bugs: lp:python-launchpad-bugs (rev152)
Task |
Lib |
Code |
STAGING |
EDGE |
get description of #123456 |
launchpadlib |
>>> b = launchpad.bugs[123456] |
10 loops, best of 3: 2.09 s per loop |
10 loops, best of 3: 2.65 s per loop |
py-lp-bugs (text) |
>>> b = Bug(123456) |
10 loops, best of 3: 638 ms per loop |
10 loops, best of 3: 808 ms per loop |
|
get status of all tasks of #123456 |
launchpadlib |
>>> b = launchpad.bugs[123456] |
10 loops, best of 3: 2.23 s per loop |
10 loops, best of 3: 2.86 s per loop |
py-lp-bugs (text) |
>>> b = Bug(123456) |
10 loops, best of 3: 641 ms per loop |
10 loops, best of 3: 756 ms per loop |
Comments/Notes
BugHelper/Dev/python-launchpad-bugs/Compare_lplib_pylpbugs (last edited 2009-01-23 19:30:32 by a89-182-194-225)