/learning_rust

the learning process that is written into one repo based on rust language book.. visit my discord :rocket:

Primary LanguageRust

learning_rust

English

I made this as my progress to learn rust language and to share with other. To start learning rust you can start by installing it here: Getting started - Rust Programming Language and to see the manual book / study book, visit: The Rust Programming Language Book

Bahasa Indonesia

Saya membuat ini untuk mencatat progres belajar rust language saya dan membagikan nya. untuk memulai mempelajari rust kamu bisa memulai dengan instalasi berikut: Getting started - Rust Programming Language dan ini adalah buku pelajaran rust, kunjungi: The Rust Programming Language Book

menu!

  1. guessing game
  2. shadowing
  3. length of input
  4. data types
  5. functions
  6. loop and if
  7. ownership
  8. hash vs vector on find string performance

HashMap VS Vector performance

Elapsed time: 11.36µs
Elapsed time: 218.56µs
vector WIN!, hash declaration takes longer time 1800% difference, vector 11361 nanosecond and hash 11361 nanosecond or 11 microsecond
=========================================
Elapsed time: 15.11µs
Elapsed time: 2.11µs
hash WIN!, vector finding takes longer time 600% difference, vector 15107 nanosecond and hash 2110 nanosecond