size-limit-action
size-limit-action copied to clipboard
100% increase when running time is `0 ms`
First of all thanks for this action and the cli tool.
I am noticing a consistent 0 ms (+100% 🔺)
. Is this expected?
See screen grab below

I found this is due to the case of comparing against an initial value of 0
, where coming up with a percentage increase value is tricky. Currently the code reports +100% 🔺
. I have raised a PR fix where I think the suggested resolution is an improvement See https://github.com/andresz1/size-limit-action/pull/102. Basically the reported percentage increase will be:
-
0%
if the both the previous and current values are0
, or -
+∞% 🔺
if the previous value is0
and the current is not0
@andresz1 any thoughts on this?