Question: Performance of compare list

Hi all, assume data::list, I want check data is not empty, which one is faster ?

if numelems(data) > 0 then
    
fi;

 

if data <> [] then
    
fi;

 

Thank you very much.

Please Wait...