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)
- Pentest Tools Github
- Hacking Tools Free Download
- Ethical Hacker Tools
- Free Pentest Tools For Windows
- Black Hat Hacker Tools
- New Hack Tools
- Hacker Tools Github
- Pentest Tools For Windows
- Pentest Recon Tools
- Pentest Tools Website Vulnerability
- Growth Hacker Tools
- Pentest Tools Linux
- Github Hacking Tools
- Underground Hacker Sites
- Blackhat Hacker Tools
- Hacker Tools Apk
- Hack Tools Online
- Hacking App
- Hacker Tools Mac
- Kik Hack Tools
- Hack Tools For Games
- Wifi Hacker Tools For Windows
- Hack Tools For Games
- Hacking Tools And Software
- Pentest Tools For Ubuntu
- Pentest Tools Free
- Hacker Tools Free
- Pentest Tools Subdomain
- Hack Tools Github
- Hacking Tools For Windows
- Pentest Tools Open Source
- Hacker Tools For Windows
- Hacker Tools For Pc
- Nsa Hacker Tools
- Hacking Tools For Beginners
- Hacker Tools Free
- Hack Tools Pc
- Hacking Tools For Games
- Pentest Tools Android
- Hacking Tools Windows 10
- Tools For Hacker
- Hacker Techniques Tools And Incident Handling
- Tools For Hacker
- Hack Tools For Games
- Hacker Techniques Tools And Incident Handling
- Hacking Tools
- Hacking Tools For Windows 7
- Hacking Tools Name
- Hacking Tools Mac
- Hacker Tools Apk Download
- Pentest Tools Android
- Hack Tools 2019
- Nsa Hack Tools Download
- Game Hacking
- Growth Hacker Tools
- Pentest Tools Tcp Port Scanner
- Hacking Tools 2019
- Hacking App
- Hack Tools 2019
- Hack Tools 2019
- Tools For Hacker
- Hacker Tools Software
- Wifi Hacker Tools For Windows
- Tools 4 Hack
- Pentest Tools Subdomain
- Best Hacking Tools 2020
- Hacking Tools Mac
- Beginner Hacker Tools
- Hacker Tools For Ios
- Hack Tools For Windows
- Hacking Tools Download
- Hacker Techniques Tools And Incident Handling
- Pentest Tools Alternative
- Computer Hacker
- Hackrf Tools
- Hack Tools For Ubuntu
- Hack App
- Pentest Recon Tools
- Pentest Tools Windows
- Hak5 Tools
- Hack Tools For Windows
- Hack Tools For Games
- Hack Tools
- Pentest Tools Open Source
- Hack Tools 2019
- Pentest Tools
- Underground Hacker Sites
- Hacking Tools Online
- Hacker Search Tools
- Blackhat Hacker Tools
- Hacker Tools Linux
- Tools Used For Hacking
- Nsa Hack Tools
- Install Pentest Tools Ubuntu
- Usb Pentest Tools
- Pentest Tools Windows
- Growth Hacker Tools
- Hacking Tools 2020
- Pentest Tools For Ubuntu
- Pentest Tools Android
- Hacking Tools For Pc
- Android Hack Tools Github
- Top Pentest Tools
- Hacking Tools Download
- Pentest Recon Tools
- Hacking Tools Kit
- Hack Tool Apk
- Hack Rom Tools
- Wifi Hacker Tools For Windows
- Pentest Tools Url Fuzzer
- Pentest Tools Github
- Beginner Hacker Tools
- Game Hacking
- Tools For Hacker
- Hack And Tools
- Usb Pentest Tools
- Hacker Tools Linux
- Hackers Toolbox
- Tools 4 Hack
- Hacking Tools For Windows
- Hacking Tools 2020
- Pentest Tools
- Hacking App
- Pentest Tools Apk
- Black Hat Hacker Tools
- Hacking Tools For Windows Free Download
- Hacker Search Tools
- Pentest Tools Android
No comments:
Post a Comment