[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Is there any performance difference between [[ $# -eq 0
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Is there any performance difference between [[ $# -eq 0 ]] and (($#==0)) |
Date: |
Mon, 31 Jul 2017 08:20:18 -0400 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Sun, Jul 30, 2017 at 07:23:09AM -0500, Peng Yu wrote:
> Hi,
>
> I don't see a robust difference in runtime between [[ $# -eq 0 ]] and
> (($#==0)). Are they the same in performance?
You're the one running the benchmarks. You tell us. Are they similar
in performance on your system?