These operations that Swift performs to manage things costs time and resources; granted, not much but it still takes some effort. This is why Swift is slower than C/C++ . JavaScript V8 vs C++ g++ (64-bit Ubuntu one core) I’m not switching to JavaScript anytime soon.