Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 680 Bytes

Readme.md

File metadata and controls

25 lines (17 loc) · 680 Bytes

Problem

How many vowels are in a text? This is our problem, but the main goal is learn how to use threads in ruby, so, we need to design a solution to find the number of words in a very long text in two ways

  1. Sequential
  2. Threads

Plase use the file "text.txt" for your solution, copy it in your solution folder.

Output

You must write the vowels count and for performance purpose, please add the execution time.

Sequential Search
{"a"=>4049408, "e"=>6050373, "i"=>3550018, "o"=>4236236, "u"=>1487946}
run in 19.486149 seconds
Parallel Search
{"a"=>4049408, "e"=>6050373, "i"=>3550018, "o"=>4236236, "u"=>1487946}
run in 11.334201 seconds