Skip to content

Commit 74be1db

Browse files
committed
Compiled binary size benchmark
1 parent da4547b commit 74be1db

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

benchmarks/compiled.ino

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#define ELEMENTS 2
2+
3+
void setup () {
4+
randomSeed(analogRead(0));
5+
benchmark();
6+
}
7+
8+
void benchmark() {
9+
int arr[ELEMENTS];
10+
seeder(arr, -15, 15);
11+
MSORT(arr, ELEMENTS, int);
12+
}
13+
14+
void seeder(int *arr, int min, int max) {
15+
for (int i = 0; i < ELEMENTS; i++) {
16+
arr[i] = random(min, max);
17+
}
18+
}
19+
20+
void loop(){
21+
delay(1000000);
22+
}
23+

0 commit comments

Comments
 (0)