perf: introduce benchmark.lua helper module
This module helps to aggregate various subbenchmark runs and dump them either to stdout or to the specified file. Also, it allows you to output results in the JSON format. Usually, these options should be used together to dump machine-readable results for the benchmarks. Also, set the `LUA_PATH` environment variable for the Lua benchmarks to make the introduced module requirable. NO_DOC=perf test NO_CHANGELOG=perf test NO_TEST=perf test
perf/lua/benchmark.lua
0 → 100644