#300·sysbench

Extend default cumulative report

Author: ylacancelleraCreated Mar 29, 2019Updated Nov 27, 2025

Hi

We can switch report_intermediate customization on and off with options and hooks like

sysbench.hooks.report_intermediate =
        function (stat)
                if (not sysbench.opt.verbose_display) then
                        return sysbench.report_default(stat)
                end
                print(format('My custom report : %.0fs', stat.time_total))
        end

Unfortunately, we cannot with report_cumulative because we cannot call the default reporting function from LUA. Either we force a custom function, or not, but we cannot make it switchable.

Did I miss anything ? If not, is this feature possible ?

I would be glad to implement it with some advices