There is an article by Modular claims that Mojo is Faster than Rust

Modular: Mojo vs. Rust: is Mojo 🔥 faster than Rust 🦀 ?

The article highlighted that this rust code


fn recursive(x: usize){
    if x == 0 {
        return;
    }
    let mut stuff = Vec::with_capacity(x);
    for i in 0..x {
        stuff.push(i);
    }
    recursive(x - 1)
}

fn main() {
    recursive(50_000);
}

Gets beaten by Mojo code


fn recursive(x: Int):
    if x == 0:
        return
    var stuff = List[Int](x)
    for i in range(x):
        stuff.append(i)
    recursive(x - 1)

fn main():
    recursive(50_000)

The benchmark they conducted result in:

Rust:


Benchmark 1: ./rust
  Time (mean ± σ):      2.119 s ±  0.031 s    [User: 1.183 s, System: 0.785 s]
  Range (min … max):    2.081 s …  2.172 s    10 runs

Mojo:


Benchmark 1: ./mojo
  Time (mean ± σ):     620.6 ms ±   5.6 ms    [User: 605.2 ms, System: 2.1 ms]
  Range (min … max):   613.9 ms … 632.4 ms    10 runs

They also mentioned this

<aside> 💡 Rust mean time to 9.067 s with 10 GB  peak allocated memory, and Mojo to 1.189 s with 1.5 MB  peak allocated memory

</aside>