Best performances between realm.query() and realm.all().where

Hi !

I wanted to know which way should I prefer between realm.query() and realm.all.where !
Does one have any advantages in term of compute time or memory use ?

To add context, I’m using Flexible Sync, all object have already been synchronized from the database.