update code output after adding speedup for comparison between sequential and parallel sorting.
This commit is contained in:
+7
-4
@@ -198,9 +198,12 @@ int main() {
|
||||
EXAMPLE OUTPUT (when n=10000):
|
||||
|
||||
$ ./Code-2
|
||||
Sequential Bubble Sort time: 0.955806 seconds
|
||||
Parallel Bubble Sort time: 0.296248 seconds
|
||||
Sequential Merge Sort time: 0.0114291 seconds
|
||||
Parallel Merge Sort time: 0.00343183 seconds
|
||||
Sequential Bubble Sort time: 0.955394 seconds
|
||||
Parallel Bubble Sort time: 0.282093 seconds
|
||||
Bubble Sort Speedup (Sequential / Parallel) = 3.38681x
|
||||
|
||||
Sequential Merge Sort time: 0.0116294 seconds
|
||||
Parallel Merge Sort time: 0.00282529 seconds
|
||||
Merge Sort Speedup (Sequential / Parallel) = 4.11618x
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user