forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These tests are not run in any testing config & only run manually. --- Signed-off-by: Michael Ferguson <[email protected]>
- Loading branch information
Showing
3 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
test/library/packages/Sort/performance/comparison/chapel-quicksort-random.chpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// chpl --fast chapel-quicksort-random.chpl | ||
|
||
use Sort; | ||
use QuickSort; | ||
use Time; | ||
use Random; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
test/library/packages/Sort/performance/comparison/python-sort-random.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import random | ||
import time | ||
|
||
#n = 1024*1024*16 # for 128MiB | ||
n = 1024*1024*128 # for 1GiB | ||
#n = 1024*1024*16 # for 16MiB | ||
n = 1024*1024*128 # for 128MiB | ||
|
||
array = [random.randint(0, 0xffffffffffffffff) for _ in range(n)] | ||
start = time.clock() | ||
start = time.time() | ||
array.sort() | ||
stop = time.clock() | ||
stop = time.time() | ||
|
||
print ("Sorted ", n, " elements in ", stop-start, " seconds") | ||
print (((8*n) / (stop-start))/1024.0/1024.0, " MiB/s") |