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)
Related links
- Hacker Tools
- Hacker Search Tools
- Hacking Apps
- Install Pentest Tools Ubuntu
- Hack Tools
- Hacking Tools Hardware
- Hack Apps
- Hacking Tools Online
- Hack Tools Download
- Android Hack Tools Github
- How To Hack
- Hacking Tools For Windows
- Pentest Tools Android
- Pentest Tools Apk
- Hacking Tools And Software
- Hack Tools For Games
- Hacker Tools Software
- Hacker
- Hacking Tools Windows 10
- Pentest Tools Android
- Pentest Tools Github
- Best Hacking Tools 2019
- Hack Tool Apk
- Hacker Techniques Tools And Incident Handling
- Hack Tools Online
- Hacking Tools Usb
- Underground Hacker Sites
- Hack Tools Github
- Hacker Security Tools
- Ethical Hacker Tools
- Hacking Tools Online
- Game Hacking
- Hacking Tools Windows
- Hacker Hardware Tools
- Easy Hack Tools
- Beginner Hacker Tools
- Hack Website Online Tool
- Hacker Tools 2020
- Hacking Tools For Games
- What Is Hacking Tools
- Pentest Automation Tools
- Tools 4 Hack
- Pentest Tools Kali Linux
- Hack App
- Hacking Apps
- Pentest Tools Android
- Hack Tools For Mac
- Pentest Recon Tools
- Hacking Tools Windows 10
- Hacker Tools Windows
- Pentest Tools Find Subdomains
- Hacker Tools Software
- Nsa Hack Tools
- Hack Tool Apk No Root
- Hack Tools Mac
- Hacker Tools Windows
- Hacking Tools 2020
- Tools Used For Hacking
- Hacker Tools List
- Pentest Automation Tools
- Pentest Tools Url Fuzzer
- Hack Tools Download
- Pentest Tools Framework
- Pentest Tools For Android
- Kik Hack Tools
- Pentest Tools For Android
- Hacking Tools For Windows Free Download
- Computer Hacker
- Bluetooth Hacking Tools Kali
- Android Hack Tools Github
- Hacking Tools Windows
- Hacking App
- Blackhat Hacker Tools
- Hacker Tools List
- Pentest Tools Alternative
- Hacker Tools 2020
- How To Hack
- Hacker Tool Kit
- Hacking Tools 2020
- Hacking Tools Windows
- How To Install Pentest Tools In Ubuntu
- Hacking Tools For Games
- Hack Tools
- Pentest Tools For Ubuntu
- Pentest Tools Website Vulnerability
- Hacking Tools For Windows
- Hacking Tools For Kali Linux
- Hacker Tools For Mac
- Pentest Box Tools Download
- Pentest Tools Port Scanner
- Pentest Recon Tools
- Hack Tool Apk No Root
- Hacking Tools Hardware
- Hack Tool Apk
- Hacks And Tools
- Hackrf Tools
- Pentest Tools Github
- Hack App
- Hacker Hardware Tools
- Hack Apps
- Hack App
- Game Hacking
- Hacker Tools List
- Hacking Tools For Windows 7
- Hacking Tools For Kali Linux
- Hak5 Tools
- Hacking Tools 2019
- Hacking Tools
- Hack Website Online Tool
- New Hack Tools
- Bluetooth Hacking Tools Kali
- Hacking Tools 2019
- Tools 4 Hack
- Hackrf Tools
- Hacker Tools Mac
- Hacker Tools Software
- Hacking Tools Windows
- Hack Tools Github
- Hack Tools Online
- Hacker Tools
- Best Hacking Tools 2019
- Hacker Tools Mac
- Hacking Tools Kit
- Growth Hacker Tools
- Hacker Tools Hardware
- Hacking Tools For Games
- Hack Tool Apk No Root
- Hack Tools Download
- Hacker Tools Linux
- Hacking Tools 2019
- Hacking Tools Hardware
- Hack And Tools
- Ethical Hacker Tools
- Hacking Tools Windows
- Pentest Tools Review
- How To Make Hacking Tools
- Pentest Tools Port Scanner
- Hacking Tools Pc
- Pentest Tools Framework
- Hacker Tools Linux
- Hacking Tools 2020
- Growth Hacker Tools
- Top Pentest Tools
- Hacker Tools Online
- Hacker Tools 2019
- Pentest Tools Url Fuzzer
- Pentest Tools Kali Linux
- Kik Hack Tools
No comments:
Post a Comment