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)
- Hacking Tools Pc
- World No 1 Hacker Software
- Install Pentest Tools Ubuntu
- Github Hacking Tools
- Hack Apps
- Hacks And Tools
- Hacking Tools Windows
- Pentest Tools Bluekeep
- Hack Tools Online
- Hack Website Online Tool
- Pentest Recon Tools
- Hack Tools Mac
- Hack Tools Github
- Tools 4 Hack
- Hacking Tools Windows 10
- Hacking Tools Mac
- New Hack Tools
- Hack Tools For Windows
- Pentest Tools Url Fuzzer
- Hacker Tools Apk
- Hacking Tools For Windows Free Download
- Pentest Tools Website
- Pentest Automation Tools
- Hacker Tools Windows
- Android Hack Tools Github
- Hacking Tools Mac
- Hacking Tools For Windows
- Hack App
- Hacks And Tools
- Hacker Search Tools
- Hacker Tools For Windows
- Hacking Tools Software
- Pentest Tools Android
- Pentest Tools Android
- Hack Website Online Tool
- Pentest Tools Download
- New Hack Tools
- Hacker Tool Kit
- Best Pentesting Tools 2018
- Best Hacking Tools 2020
- Nsa Hack Tools
- Pentest Tools Port Scanner
- Pentest Tools Free
- Beginner Hacker Tools
- Kik Hack Tools
- Pentest Tools List
- Pentest Tools Android
- Physical Pentest Tools
- Growth Hacker Tools
- Pentest Tools Android
- Hacker Tools Linux
- Pentest Tools Framework
- Hacking Tools 2020
- Best Hacking Tools 2019
- Top Pentest Tools
- Hacking Tools For Games
- Hacker Tools Github
- Pentest Tools Find Subdomains
- Hack Tools
- Hack Tool Apk No Root
- Pentest Tools Website
- Pentest Tools Online
- Hacker Tools
- Hacker Tools Software
- Tools 4 Hack
- Hack Rom Tools
- Hack Tools For Ubuntu
- Hacking Tools
- Tools Used For Hacking
- How To Make Hacking Tools
- How To Make Hacking Tools
- Pentest Tools Linux
- Underground Hacker Sites
- Pentest Tools Nmap
- Hacker Tools Mac
- Hacking Apps
- Usb Pentest Tools
- Hacking Tools For Pc
- Install Pentest Tools Ubuntu
- Hacking Tools Windows
- Hacking Apps
- Pentest Recon Tools
- Pentest Tools Framework
- Hacking Tools For Windows
- Hacker Tools Free Download
- Hacking Apps
- Hacking Tools Usb
- Pentest Tools For Windows
- Nsa Hacker Tools
- Hacking Tools Pc
- Hacking Tools Free Download
- Android Hack Tools Github
- Physical Pentest Tools
- Hacking Tools Windows
- Hack Tools Github
- Hack Tool Apk
- Hack Tools For Games
- Hack Tool Apk No Root
- Hack Tools Github
- Hack Tools For Pc
- Hacking Tools Name
- Hacker Tools 2019
- Hacking Tools Usb
- Hacker Tools Github
- Pentest Tools For Windows
- Hack Rom Tools
- Pentest Tools Download
- Hack Tool Apk
- Hacker Security Tools
- Nsa Hack Tools Download
- Hacker Hardware Tools
- Pentest Reporting Tools
- Hack Tool Apk No Root
- Pentest Tools Tcp Port Scanner
- Hack Tools
- Hacking Tools 2020
- Hacker Tools Mac
- Pentest Tools Framework
- Tools Used For Hacking
- Hacking Tools And Software
- New Hacker Tools
- Pentest Automation Tools
- What Are Hacking Tools
- Pentest Tools Url Fuzzer
- Hacking Tools For Windows Free Download
- Hack Apps
- Hack Tools 2019
- Hack Tools For Windows
- Easy Hack Tools
- Best Hacking Tools 2020
- Hack Tool Apk No Root
- Hacks And Tools
- Hacking Tools For Games
- Pentest Tools Linux
- Hacker Tools Linux
- Hacking Tools Download
- Tools Used For Hacking
- Hacking Tools Usb
- Hacker Tool Kit
- Pentest Tools Url Fuzzer
- Hacking Tools For Pc
- Hacker
- Hack Website Online Tool
- Tools For Hacker
- Hack Tools For Pc
- Pentest Tools Review
- Best Hacking Tools 2019
- Hacking Apps
- Hacker Hardware Tools
- Underground Hacker Sites
- Hacker Tools For Mac
- Hacker Tools Software
- Pentest Tools Bluekeep
- Hack Tools Mac
- Underground Hacker Sites
- Hacking Tools 2019
- Free Pentest Tools For Windows
- Hack Tools Mac
- Hack Tools For Windows
- Hacking App
- Hack Tools For Mac
- Black Hat Hacker Tools
- Kik Hack Tools
- Hacker Tools Apk Download
- Pentest Tools Url Fuzzer
- Nsa Hacker Tools
- Install Pentest Tools Ubuntu
- Hackers Toolbox
- Hack And Tools
- Pentest Tools Online
- Hacking Tools Windows
- Pentest Tools List
- Hacker Tools Software
No comments:
Post a Comment