divan icon indicating copy to clipboard operation
divan copied to clipboard

Colored output

Open segeljakt opened this issue 1 year ago • 1 comments

Hi, would it be possible to, optionally via a config flag, add some colors to the output to make it easier to distinguish execution times? For example, in each of the "fastest │ slowest │ median │ mean" columns, slower times could be colored red and faster times green. I think the colored crate could be useful.

segeljakt avatar Nov 11 '24 10:11 segeljakt

Thanks for the suggestion! I have considered coloring by column and bolding labels, but I haven't gotten around to applying any styling yet.

For this I will probably reach for @epage's anstyle crate because:

  • Its goals are aligned with Divan's (low overhead, few/no dependencies)
  • API stability
  • It's already a transitive dependency through clap

nvzqz avatar Nov 26 '24 11:11 nvzqz