Skip to content

Latest commit

 

History

History
121 lines (112 loc) · 951 Bytes

README.md

File metadata and controls

121 lines (112 loc) · 951 Bytes

fibonacci-ruby

Performance comparisons using Fibonacci sequence

Usage

./perf_calculation.sh *startIndex* *endIndex*

Example

Input

./perf_calculation.sh 0 30

Ouput

0
1
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
6765
10946
17711
28657
46368
75025
121393
196418
317811
514229
832040

real  0m0.355s
user  0m0.304s
sys 0m0.008s
0
1
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
6765
10946
17711
28657
46368
75025
121393
196418
317811
514229
832040

real  0m0.063s
user  0m0.032s
sys 0m0.008s
0
1
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
6765
10946
17711
28657
46368
75025
121393
196418
317811
514229
832040

real  0m0.061s
user  0m0.028s
sys 0m0.012s