WARNING: This is old thread. It is continued here.
- tests how fast functions and/or subroutines run and diplays results in a window. When you are in doubt which coding approach/style will do specific job fastest, this test will give you the answer.
- no globals, encapsulated
- simple usage
- based on SKAN's QPX() function
QPX window preview. Click here to see explanation.
Left edit = Summary with average run time for each item in test collection + percentages + fastest tested item mark (<<)
Right edit = Details with minimum (fastest), average, maximum (slowest) and total run times for each item in test collection + percentages
Basic usage concept.
QPX.Add("MyFunc") ; adds MyFunc function to the test collection QPX.Add("AnotherFunc", "param1", "param2") ; adds AnotherFunc function to the test collection and passes 2 parameters to that function QPX.Add("MySub") ; adds MySub subroutine to the test collection QPX.Add("AnotherSub") ; adds AnotherSub subroutine to the test collection QPX.Test() ; starts test and displays results in a window. Left edit = Summary. Right edit = Details. return
QPX.ahk - includes [QPX object] + [example, documentation, etc. in comments]
Thanks to SKAN for his QPX() function.
- QPX() by SKAN
- AutoHotkey Benchmarks by Uberi
- Minimal Benchmark by R3gX