Giter VIP home page Giter VIP logo

speedtest's Introduction

SpeedTest

  • 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.

SpeedTest Class

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.

How to Use

  • 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.

speedtest's People

Contributors

jordanrobot avatar

Stargazers

Marcus Hawley avatar Alex Fielder avatar Jesse Hurdle avatar

Watchers

 avatar

speedtest's Issues

Collapse two classes into a single file?

Currently there is a Timer class and a Speed test class. Consider:

  • collapsing these into a single class or
  • making Timer a subclass of SpeedTest.

This will simplify use and deployment for others who want to use this tool; they will only have a single class file to include in projects, and collation of the two files will no longer be required to create the ilogic template.

This may break unit tests of the Timer class, but it's simple enough that these tests may not be required.

Another option would be to refactor away the Timer class and move all functionality into the SpeedTest class.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.