Compared to the native kubectl config use-context $contextname, kubectl ctx is noticeable slower when operating on a kubeconfig with a large number of contexts (9.8k).
kubectx ctx needs around 1.3-1.4 seconds to switch a context versus the native kubectl config use-context needing 0.7-0.8s (n=3 for each, M1 Pro with Sonoma 14.4).
Compared to the native
kubectl config use-context $contextname
,kubectl ctx
is noticeable slower when operating on a kubeconfig with a large number of contexts (9.8k).kubectx ctx
needs around 1.3-1.4 seconds to switch a context versus the nativekubectl config use-context
needing 0.7-0.8s (n=3 for each, M1 Pro with Sonoma 14.4).