![]() |
GBench
5 Attachment(s)
Benchmarking!
If you have ever found yourself trying to make a script run faster, it can be a pain. GBench (a benchmarker) makes it less of a pain:
It will run 100 samples (basically a sample is enough of your function calls to take up at least 0.01 secs). Then it will give you a histogram that shows each sample and how long it took. And then it will give you something called a "Kernel Density Estimation". That is a statistics term for a pretty simple concept: In our case, look at any point on the kernel density estimate, and that is your probability of your function taking that long. Example! PHP Code:
NPC Code:benchmarking fib And, then you will get your histogram and kernel density estimate (all times are in milliseconds): http://forums.graalonline.com/forums...4&d=1268441055 The big hill on the kernel density estimate shows that most likely the function will take around 41.6 ms to run. The smaller hill near the end means there is a slight chance that the function will take 43 ms to run. Known Bugs :(
The magic is attached! |
Neat graphs.
|
Pretty.
|
How did you accomplish the AA? O.o
|
Quote:
|
I'd rep you, but I have to spread some rep first. Very nice!
|
Good Job :)
|
All times are GMT +2. The time now is 01:52 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.