Skip to content

fushinori/rust-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linear and binary search implementations in Rust.

Why?

I was bored.

Benchmarks

  • Set the list size and seed in lib.rs.
  • Change the seed to test with different targets. We need the target to be the same for both functions. At the same time, we need to be able to test with different targets. This is where being able to change the seed comes in handy.
  • Run this
    cargo bench -- --nocapture
    Note: You need Rust nightly to run benchmarks. To switch to nightly for the current directory, run
    rustup override set nightly

Well, that was kinda fun.

About

Linear and binary search implementations in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages