Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions scripts/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class Tracer:
12 : "trace-12-malloc",
13 : "trace-13-perf",
14 : "trace-14-perf",
15 : "trace-15-perf"
15 : "trace-15-perf",
16 : "trace-16-perf"
}

traceProbs = {
Expand All @@ -47,11 +48,12 @@ class Tracer:
12 : "Trace-12",
13 : "Trace-13",
14 : "Trace-14",
15 : "Trace-15"
15 : "Trace-15",
16 : "Trace-16"
}


maxScores = [0, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7]
maxScores = [0, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7]

def __init__(self, qtest = "", verbLevel = 0, autograde = False, useValgrind = False):
if qtest != "":
Expand Down
24 changes: 24 additions & 0 deletions traces/trace-16-perf.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Test performance of sort with random and descending orders
# 10000: all correct sorting algorithms are expected pass
# 50000: sorting algorithms with O(n^2) time complexity are expected failed
# 100000: sorting algorithms with O(nlogn) time complexity are expected pass
option fail 0
option malloc 0
new
ih RAND 10000
sort
reverse
sort
free
new
ih RAND 50000
sort
reverse
sort
free
new
ih RAND 100000
sort
reverse
sort
free