Skip to content

ts-ds / TraceStats

Interface: TraceStats ​

Defined in: trace/trace.ts:37

Counters of what the algorithm did.

Properties ​

comparisons ​

ts
comparisons: number;

Defined in: trace/trace.ts:39

Calls of the comparator. Always 0 for counting and radix sort.


reads ​

ts
reads: number;

Defined in: trace/trace.ts:41

Reads of array elements.


swaps ​

ts
swaps: number;

Defined in: trace/trace.ts:45

Exchanges of two elements.


writes ​

ts
writes: number;

Defined in: trace/trace.ts:43

Writes of array elements, including the two writes of every swap.

MIT License