(picture Ren and Stimpy singing; see below for visual/auditory aid [1])

I'm not quite ready to send out a webrev for Phase 2 of the catalog work yet (although all of the test suites passed at last check, etc.) and I really should be in bed now. But, the indescribable satisfaction I have from the following, preliminary client timings below should justify the pop culture reference above:

Publisher Setup
===============
$ pkg publisher
PUBLISHER                             TYPE     STATUS   URI
opensolaris.org (preferred) origin online http://ipkg.sfbay/dev/ contrib.opensolaris.org origin online http://ipkg.sfbay/contrib/ extra origin online https://pkg.sun.com/opensolaris/extra/
punchin                               origin   online   http://.../

Timings
=======
The timings below are higlights from a comparison of a build 117 pkg client vs. my workspace.

/ is my build 117 system root (that does *not* have redistributable installed; only about 728 packages are)

/mnt is a beadm clone of my '/' that has been upgraded to the new image format (at a one-time cost of 45 seconds).

The first timing listed is the old client, the second timing listed is the new client. And yes, I have performed diffs of the pkg list output to confirm they are identical.

time old_pkg -R / list -afv >/dev/null
real    0m9.443s
user    0m9.308s
sys     0m0.109s

time new_pkg -R /mnt list -afv >/dev/null
real    0m5.488s
user    0m5.291s
sys     0m0.160s

time old_pkg list -af > /dev/null
real    0m9.197s
user    0m9.053s
sys     0m0.107s

time new_pkg -R /mnt list -af > /dev/null
real    0m5.183s
user    0m4.995s
sys     0m0.159s

time old_pkg list -a > /dev/null
real    0m8.443s
user    0m8.308s
sys     0m0.110s

time new_pkg -R /mnt list -a > /dev/null
real    0m4.346s
user    0m4.164s
sys     0m0.158s

time old_pkg list > /dev/null
real    0m5.429s
user    0m5.303s
sys     0m0.104s

time new_pkg -R /mnt list > /dev/null
real    0m0.345s
user    0m0.241s
sys     0m0.099s

time old_pkg info SUNWipkg > /dev/null

real    0m2.667s
user    0m2.543s
sys     0m0.104s

time new_pkg -R /mnt info SUNWipkg > /dev/null
real    0m0.302s
user    0m0.198s
sys     0m0.099s

time old_pkg info no_such_package > /dev/null
real    0m2.617s
user    0m2.495s
sys     0m0.103s


time new_pkg -R /mnt info no_such_package > /dev/null
real    0m0.278s
user    0m0.176s
sys     0m0.097s

Summary
=======
As Bart says, "...the only way to go faster in software is to do less."

I still have some more testing (beyond the test suites) of my own that I want to do, but I'm confident that there is little left to do.

Look for a webrev for Phase 2 of the catalog work very soon.

Cheers,
--
Shawn Walker

[1] http://www.youtube.com/watch?v=5DC-pIvNODU
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to