Is it efficient to compare a string with another string or string literal like this?

```
string a;
string b;
if (a == "test")

```

or 

```
if (a == b)

```

My coworker asked me to use memcmp

Any comments about this?

Thanks.