@@ -53,9 +53,8 @@ I ran this benchmarks on a 16 MHz Arduino Pro Mini. Sizes are estimates.
5353sort2 is specialized for two-element arrays: it is a macro with a simple ìf` statement.
5454
5555| Sorting method | Compiled size |
56- + ---------------------+ ---------------+
56+ | ------------------- | -- ----------- |
5757| Baseline, no sort | 2 326 bytes |
58- +---------------------+---------------+
5958| qsort, standard lib | 3 510 bytes |
6059| gnome sort 2 | 2 388 bytes |
6160| bubblesort | 2 354 bytes |
@@ -67,9 +66,8 @@ sort2 is specialized for two-element arrays: it is a macro with a simple ìf` st
6766sort3 is specialized for three-element arrays, similar to sort2
6867
6968| Sorting method | Compiled size |
70- + ---------------------+ ---------------+
69+ | ------------------- | -- ----------- |
7170| Baseline, no sort | 2 352 bytes |
72- +---------------------+---------------+
7371| qsort, standard lib | 3 536 bytes |
7472| gnome sort 2 | 2 448 bytes |
7573| bubblesort | 2 426 bytes |
@@ -79,9 +77,8 @@ sort3 is specialized for three-element arrays, similar to sort2
7977### 20 elements
8078
8179| Sorting method | Compiled size |
82- + ---------------------+ ---------------+
80+ | ------------------- | -- ----------- |
8381| Baseline, no sort | 2 322 bytes |
84- +---------------------+---------------+
8582| qsort, standard lib | 3 504 bytes |
8683| gnome sort 2 | 2 400 bytes |
8784| bubblesort | 2 370 bytes |
0 commit comments