@@ -213,7 +213,7 @@ public function testMergeSortPerformance()
213
213
214
214
public function testQuickSortPerformance ()
215
215
{
216
- $ array = range (1 , 1000000 );
216
+ $ array = range (1 , 1000 );
217
217
$ start = microtime (true );
218
218
quickSort ($ array );
219
219
$ end = microtime (true );
@@ -222,7 +222,7 @@ public function testQuickSortPerformance()
222
222
223
223
public function testRadixSortPerformance ()
224
224
{
225
- $ array = range (1 , 1000000 );
225
+ $ array = range (1 , 100000 );
226
226
$ start = microtime (true );
227
227
radixSort ($ array );
228
228
$ end = microtime (true );
@@ -231,7 +231,7 @@ public function testRadixSortPerformance()
231
231
232
232
public function testSelectionSortPerformance ()
233
233
{
234
- $ array = range (1 , 1000000 );
234
+ $ array = range (1 , 10000 );
235
235
$ start = microtime (true );
236
236
selectionSort ($ array );
237
237
$ end = microtime (true );
@@ -269,7 +269,7 @@ public function testQuickSortCipher()
269
269
270
270
public function testHeapSortPerformance ()
271
271
{
272
- $ array = range (1 , 1000000 );
272
+ $ array = range (1 , 100000 );
273
273
shuffle ($ array ); // Randomize the order
274
274
$ start = microtime (true );
275
275
heapSort ($ array );
0 commit comments