Hello, In first place I'm not going to do an algorithmic benchmark, just a simple loop + print test and some checks on the generated binaries.
The system is a Debian12 Linux and the architecture is: x86 64bits.
Mojo don't allow .py extension it has to be .mojo so no default nvim highlighting ...
$ mojo build mojo_benchmark.mojo
$ time ./mojo_benchmark
...
real 0m0.342s
user 0m0.080s
sys 0m0.252s
$ rustc rust_benchmark.rs
$ time ./rust_benchmark
...
real 0m0.107s
user 0m0.012s
sys 0m0.049s
I noticed a speed increase using fish shell instead of bash but could be the environment variable stack overload.
So in this specific test rust is much faster. And also the compiler suggests using _ instead i, that mojo compiler doesn't.
The rust binary is bigger, but is because the allocator is embedded:
-rwxr-xr-x 1 sha0 sha0 1063352 Jan 10 08:55 mojo_benchmark
-rwxr-xr-x 1 sha0 sha0 4632872 Jan 10 08:57 rust_benchmark
But Look this, mojo uses libstdc++ and libc and rust only uses libc.
$ ldd -d mojo_benchmark
linux-vdso.so.1 (0x00007ffd94917000)
libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007fe899cb1000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fe899a00000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe899921000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fe899c91000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe899740000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe899d2c000)
$ ldd -d rust_benchmark
linux-vdso.so.1 (0x00007ffde67b7000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8b3881b000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8b3863a000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8b388ae000)
- Hacker Tools For Windows
- Hack Tools Pc
- Nsa Hack Tools Download
- Top Pentest Tools
- How To Make Hacking Tools
- Hacker Tools For Ios
- Tools For Hacker
- Hack Tools Download
- Pentest Box Tools Download
- Hacking Tools Github
- Pentest Box Tools Download
- Bluetooth Hacking Tools Kali
- Hack Tools
- Hacking Tools Download
- Blackhat Hacker Tools
- Hacking Tools For Beginners
- Hacking Tools For Mac
- Hacker Tools 2020
- Pentest Tools Tcp Port Scanner
- Pentest Tools Tcp Port Scanner
- Hacker Tools Windows
- What Are Hacking Tools
- Hacker Search Tools
- Hacker Tool Kit
- Computer Hacker
- Hacker Security Tools
- Pentest Tools Download
- Pentest Tools Port Scanner
- Pentest Tools Github
- Hacking Tools Software
- Hack Tools For Ubuntu
- Hacking Tools For Mac
- Hacker Tools For Mac
- Pentest Recon Tools
- Pentest Tools Online
- Hacker Tools For Ios
- Hacker Search Tools
- Pentest Tools For Windows
- Hacker Tools Free
- Hacker Tools For Pc
- What Are Hacking Tools
- Pentest Tools For Android
- Hack Tools Pc
- Pentest Tools For Mac
- Hacker Tools Windows
- Hack Tools For Ubuntu
- Pentest Tools Apk
- Hacker Tools Hardware
- Hack Tools For Games
- What Are Hacking Tools
- Install Pentest Tools Ubuntu
- New Hacker Tools
- Github Hacking Tools
- Pentest Tools For Mac
- Nsa Hack Tools
- Pentest Tools Download
- Pentest Tools For Ubuntu
- Hak5 Tools
- Pentest Tools Website
- Hack Tools 2019
- Hack Tools For Ubuntu
- Usb Pentest Tools
- Hacking Tools Usb
- Tools 4 Hack
- Game Hacking
- World No 1 Hacker Software
- Best Hacking Tools 2020
- Game Hacking
- Hack Tool Apk No Root
- Hacking Tools For Windows
- Pentest Automation Tools
- Hack Tool Apk No Root
- Black Hat Hacker Tools
- Pentest Reporting Tools
- Hack Tool Apk No Root
- Hacker Tools Hardware
- Hacker Tools 2020
- Tools For Hacker
- Hack Rom Tools
- Pentest Automation Tools
- Pentest Reporting Tools
- Hack Tool Apk No Root
- Hacker Tools
- Hack Tools Github
- Growth Hacker Tools
- Hacking Tools For Windows 7
- Hacking App
- Pentest Tools Review
- Hacker Tool Kit
- Pentest Tools Kali Linux
- What Are Hacking Tools
- Pentest Tools Subdomain
- Pentest Automation Tools
- Hacking Tools Online
- Hacker Tools List
- Termux Hacking Tools 2019
- Hacker Tools Linux
- Hack Tools For Games
- Blackhat Hacker Tools
- Hack Tools For Windows
- Hacking Tools
- Pentest Tools Bluekeep
- Hacking Tools Free Download
- Hacker Tools
- Hack Tools For Games
- Hacking Tools For Windows Free Download
- Hack Tool Apk
- Android Hack Tools Github
- Pentest Tools Open Source
- Hacker Tools 2019
- What Are Hacking Tools
- Pentest Tools For Android
- How To Install Pentest Tools In Ubuntu
- Android Hack Tools Github
- Hacker Tools List
- Computer Hacker
- Hacking Tools Windows
- Hack Tools For Pc
- Hacking Tools Software
- Hacking Tools Mac
- Pentest Tools Open Source
- Pentest Tools Bluekeep
- Pentest Tools Github
- Hack Tools For Pc
- Hacker Tools Windows
- Best Hacking Tools 2019
- Hacks And Tools
- How To Install Pentest Tools In Ubuntu
- Install Pentest Tools Ubuntu
- Tools For Hacker
- Hacking Tools Name
- Blackhat Hacker Tools
- Hacking Apps
- Pentest Tools Website Vulnerability
- Pentest Tools Apk
- Nsa Hacker Tools
- Hacker Tools For Windows
- Hacking Tools Windows 10
- Hacker Tools 2020
- Hacking Tools For Windows
- Hacking Tools 2019
- Pentest Tools List
No comments:
Post a Comment
Feel welcome to place your message here.