benchmarks: provide generic numeric formatter

[#42718321]

When displaying benchmark data returned from an Interactive
through the postMessage API formatter functions are removed.

In this case supply generic decimal or integer formatters
for numeric fields.