https://github.com/thefox6/benchmark_engine
A minetest mod for benchmarking ingame.
https://github.com/thefox6/benchmark_engine
Last synced: 2 months ago
JSON representation
A minetest mod for benchmarking ingame.
- Host: GitHub
- URL: https://github.com/thefox6/benchmark_engine
- Owner: theFox6
- License: mit
- Created: 2019-06-09T11:50:33.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-20T13:03:05.000Z (almost 6 years ago)
- Last Synced: 2025-02-08T02:41:16.678Z (4 months ago)
- Language: Lua
- Size: 442 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# benchmark_engine
A minetest mod for benchmarking ingame.Use the "/benchmark" command to run a benchmark.
## adding benchmarks
To add benchmarks use `benchmark.register`.
First argument to the function is the id in the form "modname:benchmarkname".
The second argument is the defintion of the benchmark containing:
* "before" the function to run before each cycle
* "run" the function to run and measure each cycle
* "warmup" how many times this should be run for warming up the jitter.
* "loops" how many times this should be run to measure the average.