- This project aims to create an easy method to perform benchmarking and A/B testing code samples.
- It has specifically been developed for use with Autodesk Inventor, but there is no real restriction against using it as a general code micro-benchmarking tool.
- The goal is to provide users with the option of using as a compiled .dll library file or a single coallated VB.Net/iLogicVb file. The user can include these in their projects to use the benchmarking class objects.
- The individual SpeedTest.vb and Timer.vb files can also be used in a VB.net project as well.
This is an outline of the tool's primary class (this may change as the tool is developed more)...
- SpeedTest
- New (String) : Creates a new SpeedTest object.
- AddTest (message, Subroutine) : adds a test into the testing queue.
- RunTests : runs the tests
- ShowResultsInDialog : shows the users a dialog with the execution times.
- GetResults : returns a string with the execution times.
- Please refer to the StringBuilder-Test-Sample.vb file for an example and more detailed instructions on how to use this tool.
- Add a reference to the SpeedTests.dll (builds\ folder), or
- You can find the iLogicVb template here: SpeedTest-Template.iLogicVB. Download and modify the code in main and the called functions TestOne and TestTwo. You can add new tests, delete them, etc. Again, check out the StringBuilder-Test-Sample.vb to read the inline documentation.