Appendix B. Performance
This appendix captures the results obtained from running the DetailsClient component that comes with this book. This executable (EXE) can be built from the accompanying source code, which can be downloaded from the O’Reilly FTP site. To obtain the results shown in this appendix, do the following:
Build the
DetailsEXEandDetailsDLLcomponents.Register
DetailsEXEusing the-RegServercommand-line option.Register the
DetailsDLLcomponent using the regsvr32.exe utility.Build the proxy/stub code, DetailsPS.dll.
Register this proxy/stub DLL using the regsvr32.exe utility.
Build the
DetailsClientclient component.Install
DetailsEXEon a remote machine and register it. Don’t forget to install and register the proxy/stub code.Use dcomcnfg.exe to set the
RemoteServerNameentry (on the machine where theDetailsClientcomponent executes) to point to the remote machine (where the remoteDetailsEXEcomponent will run).Use regedit.exe to change the
ThreadingModelof theCLSID_DetailsCOM class to empty (i.e.,ThreadingModel="") and executeDetailsClient. The performance output will be saved in a file called perform.log. Observe the performance output.Repeat step 9 for the models
ThreadingModel="Apartment",ThreadingModel="Free", andThreadingModel="Both".
The following are performance results that I have obtained using the above procedure. Your performance results may be different but they should be relative to the ones shown in this appendix.