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)
- Hack Tool Apk
- Underground Hacker Sites
- Hacking Tools For Kali Linux
- Hack Tools 2019
- Hack Apps
- Hacker Security Tools
- Hacker Search Tools
- Pentest Tools Linux
- Underground Hacker Sites
- Best Pentesting Tools 2018
- Hacking Tools Online
- Pentest Tools Download
- Hacker Tools For Pc
- Pentest Tools Alternative
- Hack Tools For Ubuntu
- Pentest Tools Tcp Port Scanner
- Pentest Tools Open Source
- Best Pentesting Tools 2018
- Pentest Tools Website
- Free Pentest Tools For Windows
- Computer Hacker
- Underground Hacker Sites
- What Is Hacking Tools
- Pentest Tools Free
- Hacker Tools
- Hack Tools Online
- Hackers Toolbox
- Kik Hack Tools
- Pentest Box Tools Download
- Pentest Tools Alternative
- Hacking Tools Usb
- Kik Hack Tools
- Hacker Tools 2020
- Hack Tool Apk No Root
- What Are Hacking Tools
- Blackhat Hacker Tools
- Hacking Tools Online
- Hack Tools For Windows
- Hacking Tools Online
- Kik Hack Tools
- Top Pentest Tools
- Hacking Tools For Mac
- Pentest Tools Framework
- Tools Used For Hacking
- Pentest Tools Online
- Pentest Tools Apk
- Hacker Hardware Tools
- Install Pentest Tools Ubuntu
- How To Make Hacking Tools
- Hack Website Online Tool
- Hack And Tools
- Pentest Tools Website Vulnerability
- Hacker
- Hacker Hardware Tools
- Nsa Hacker Tools
- Pentest Tools Url Fuzzer
- Hack Tool Apk No Root
- Beginner Hacker Tools
- Top Pentest Tools
- Hacking Tools For Windows
- Hack Tools 2019
- Hacker Tools
- Pentest Tools List
- Hack Tools For Mac
- Hacking Tools For Windows Free Download
- Top Pentest Tools
- Hacking Tools For Beginners
- Best Pentesting Tools 2018
- Hacking Tools For Windows Free Download
- Hack Tools Pc
- Hacker Techniques Tools And Incident Handling
- Hack Tool Apk
- Tools Used For Hacking
- Hacker Tools Apk Download
- Hack Tool Apk No Root
- Hackers Toolbox
- Pentest Tools Android
- Hacker Security Tools
- Hacker Tools 2020
- Pentest Tools
- Hack Tools Github
- Black Hat Hacker Tools
- Install Pentest Tools Ubuntu
- Hacker Tools For Pc
- Pentest Tools Review
- Hacker Tools Linux
- Hacking Tools Windows
- Pentest Tools Review
- Termux Hacking Tools 2019
- Hacking Apps
- Hacking Tools Mac
- Hacking Tools Mac
- Termux Hacking Tools 2019
- Hacking Tools Online
- Kik Hack Tools
- Hacking Tools
- Hack Tools Mac
- Hacker Techniques Tools And Incident Handling
- Hacker Tools List
- Pentest Tools Bluekeep
- Hacker Hardware Tools
- Hacker Tools 2019
- Pentest Tools Online
- Ethical Hacker Tools
- Hackers Toolbox
- Hacker Tools For Mac
- Hacker Tools List
- Pentest Tools Windows
- Pentest Tools Online
- Tools Used For Hacking
- Pentest Tools List
- Hacks And Tools
- Hacker Techniques Tools And Incident Handling
- New Hack Tools
- Hacker Tools For Windows
- What Are Hacking Tools
- Hack Tools For Windows
- Hacking Tools Windows 10
- Hacking Tools For Windows 7
- Hacking Tools Name
- Hack App
- Hacker Techniques Tools And Incident Handling
- Pentest Box Tools Download
- Hacker Tools For Pc
- Hacking Tools For Windows 7
- Hacker Techniques Tools And Incident Handling
- Hacking Tools Usb
- Hack Rom Tools
- Hacking Tools For Pc
- Top Pentest Tools
- How To Install Pentest Tools In Ubuntu
- Pentest Tools Open Source
- Pentest Tools Github
- Hacker Tools Github
- Nsa Hack Tools
- Pentest Tools Android
- Hack Apps
- Hacker Tool Kit
- Hacking Tools Online
- Hacking Tools 2020
- Hack Apps
- Hacking Tools For Windows Free Download
- Hacking Tools Pc
- Hack Tool Apk
- Pentest Tools For Windows
- Android Hack Tools Github
- Hacking Tools
- Hackrf Tools
No comments:
Post a Comment