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 word
- Hacking Tools For Kali Linux
- Hak5 Tools
- Pentest Tools Download
- World No 1 Hacker Software
- Hacking Tools Pc
- Hacking Tools For Beginners
- Pentest Tools Website Vulnerability
- Hack Tools For Pc
- Hacker Tools Free Download
- How To Install Pentest Tools In Ubuntu
- Hacker Hardware Tools
- Hack Tools For Ubuntu
- Pentest Tools Kali Linux
- Pentest Tools For Android
- Best Hacking Tools 2019
- Computer Hacker
- Pentest Tools Website
- Pentest Tools For Android
- Black Hat Hacker Tools
- Hacker Tools
- Pentest Tools Subdomain
- Hacker Security Tools
- Hack Rom Tools
- Hacker Tools Apk
- Hacking Tools For Windows
- Best Pentesting Tools 2018
- Hacking Tools Kit
- Pentest Tools Open Source
- Pentest Tools Alternative
- Hack Apps
- Hack Apps
- Pentest Tools
- Hacking Tools Kit
- Hack Tools For Mac
- Install Pentest Tools Ubuntu
- Github Hacking Tools
- Pentest Tools Windows
- Hacking Tools Kit
- Bluetooth Hacking Tools Kali
- Hacking Apps
- Pentest Tools For Ubuntu
- Top Pentest Tools
- Pentest Tools Website
- Hacker Tools Free
- Hack Apps
- Nsa Hack Tools Download
- Hack Tools Online
- Hack Tools Download
- New Hacker Tools
- Hacking Tools For Games
- Hacker Tools Free Download
- Wifi Hacker Tools For Windows
- Pentest Tools Website
- Hacking Tools 2020
- Pentest Tools For Mac
- Pentest Tools Bluekeep
- New Hacker Tools
- Computer Hacker
- Hack Tools Mac
- Hacker Tools
- Github Hacking Tools
- Hacker Tools Apk
- Hacker Tools Mac
- Hacking App
- Pentest Tools Website
- Tools 4 Hack
- Pentest Tools Website
- Pentest Tools Alternative
- Hacking Tools Online
- Hack App
- Hacking Tools 2020
- Hacking Tools Free Download
- What Is Hacking Tools
- Computer Hacker
- Pentest Box Tools Download
- Hacker Tools Online
- Hacking Tools For Beginners
- Hack Tools Github
- Pentest Tools For Windows
- Hack App
- Hacking Tools Online
- Hacking Tools For Windows Free Download
- Hacking Tools Usb
- Pentest Tools Subdomain
- Hacker Tools Windows
- Hack Tool Apk
- Hack Tools For Games
- Hacking Tools For Beginners
- Tools 4 Hack
- Pentest Tools For Mac
- Hacker Tools Hardware
- Hack Tool Apk No Root
- Pentest Tools Kali Linux
- Hacker Tools Online
- Hack Tools For Pc
- Black Hat Hacker Tools
- Tools Used For Hacking
- Tools Used For Hacking
- Github Hacking Tools
- Hacker Hardware Tools
- Pentest Tools Subdomain
- Pentest Tools Review
- Hacker Tools List
- Hacker Tools Linux
- Nsa Hack Tools Download
- Pentest Tools Website Vulnerability
- Hacking Tools For Beginners
- Hacking Tools For Beginners
- Hacking Tools For Pc
- Black Hat Hacker Tools
- Hack Tool Apk No Root
- Pentest Tools Alternative
- Pentest Tools Bluekeep
- Hacking Tools 2019
- Beginner Hacker Tools
- Top Pentest Tools
- Best Pentesting Tools 2018
- Hacker Hardware Tools
- Growth Hacker Tools
- Best Pentesting Tools 2018
- Pentest Tools Windows
- Hack Tools Mac
- Pentest Tools Framework
- Hack And Tools
- Hacking Tools Hardware
- Nsa Hack Tools Download
- Pentest Tools Windows
- Best Hacking Tools 2019
- Pentest Tools Android
- Hacks And Tools
- Hacker Tools Software
- Hacking Tools Kit
- Bluetooth Hacking Tools Kali
- Black Hat Hacker Tools
- Beginner Hacker Tools
- Best Hacking Tools 2020
- Hacker Tools List
- Ethical Hacker Tools
- Hacker Tools Github
- Github Hacking Tools
- Hacking Tools For Kali Linux
- What Are Hacking Tools
- Pentest Tools List
- Hack Tools
- Pentest Tools Alternative
- Bluetooth Hacking Tools Kali
- Hacking Tools Pc
- Pentest Tools Url Fuzzer
- Kik Hack Tools
- Hacking Tools Software
- Hack And Tools
- Hacking Tools For Windows Free Download
- How To Install Pentest Tools In Ubuntu
- Pentest Box Tools Download
- Pentest Tools Download
- Nsa Hacker Tools
- Black Hat Hacker Tools
- Best Hacking Tools 2020
- Hack Tools Pc
- Hacking Tools Online
- Pentest Tools Alternative
- Hacking Tools Hardware
- How To Make Hacking Tools
- Hack Apps
- Pentest Reporting Tools
- Hacking Tools 2020
No comments:
Post a Comment