Skip to content

ITMO University Parallel Algorithms Part II assignments

Notifications You must be signed in to change notification settings

nothingelsematters/parallel-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advanced Parallel Algorithms

results

quick sort

array size sequential parallel: 4 threads parallel: 4 threads, 1_000 block
10_000_000 703.31 ms (βœ… 1.00x) 235.82 ms (πŸš€ 2.98x faster) 211.91 ms (πŸš€ 3.32x faster)
50_000_000 3.97 s (βœ… 1.00x) 1.24 s (πŸš€ 3.21x faster) 1.15 s (πŸš€ 3.46x faster)
100_000_000 8.01 s (βœ… 1.00x) 2.45 s (πŸš€ 3.26x faster) 2.25 s (πŸš€ 3.56x faster)
array size standard sequentia parallel: 4 threads parallel: 4 threads, 1_000 block
10_000_000 642.98 ms (βœ… 1.00x) 235.82 ms (πŸš€ 2.73x faster) 211.91 ms (πŸš€ 3.03x faster)
50_000_000 3.58 s (βœ… 1.00x) 1.24 s (πŸš€ 2.89x faster) 1.15 s (πŸš€ 3.11x faster)
100_000_000 7.34 s (βœ… 1.00x) 2.45 s (πŸš€ 3.00x faster) 2.25 s (πŸš€ 3.26x faster)

bfs

graph cube side sequential parallel: 4 threads
500 28.48 s (βœ… 1.00x) 9.48 s (πŸš€ 3.01x faster)

how to use

run benchmarks and generate plots

  • install cargo
  • cargo bench

run benchmarks and generate markdown table

  • cargo install criterion
  • cargo install criterion-table
  • cargo criterion --message-format=json | criterion-table > BENCHMARKS.md

About

ITMO University Parallel Algorithms Part II assignments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages