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
6 changes: 5 additions & 1 deletion benchmarks/intermittent/stringsearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// --- Configuration ---
#define NUM_PATTERNS 26
#define TEXT_LEN 512
#define MAX_PATTERN_LEN 12

// --- Mutable globals (MILP candidates) ---

Expand All @@ -22,7 +23,10 @@ static char *findme __attribute__((used, section(".fram")));

// --- Const data ---

static const char *find_strings[NUM_PATTERNS] = {
/* Stored as a 2-D char array rather than an array of pointers: a pointer array
* in memory has a target-dependent element stride, which breaks the native
* (64-bit) trace replay of IR that was optimized for MSP430's 16-bit pointers. */
static const char find_strings[NUM_PATTERNS][MAX_PATTERN_LEN] = {
"Kur", "gent", "lass", "suns", "for", "xxx", "long", "have", "where",
"xxxxxx", "xxxxxx", "pense", "pow", "xxxxx", "Yo", "and", "faded", "20",
"you", "bac", "an", "way", "possibili", "fat", "imag", "th"};
Expand Down
152 changes: 0 additions & 152 deletions benchmarks/intermittent/stringsearch_fixed.c

This file was deleted.

2 changes: 1 addition & 1 deletion results/chunking_overhead/chunked.csv
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ sensor_fusion,10uF,ok,859,25121.86,1
poly1305,10uF,ok,923,475356.64,1
cuckoo_filter,10uF,ok,761,41320.7,1
sha256,10uF,ok,1388,90038.68,1
stringsearch_fixed,10uF,ok,1236,35354.39,1
stringsearch,10uF,ok,684,36199.73,1
2 changes: 1 addition & 1 deletion results/intermittent/baseline.csv
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ sensor_fusion,613,
poly1305,68,
cuckoo_filter,4048,
sha256_fixed,131,
stringsearch_fixed,20,
stringsearch,20,
2 changes: 1 addition & 1 deletion results/intermittent/baseline_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"poly1305",
"cuckoo_filter",
"sha256_fixed",
"stringsearch_fixed",
"stringsearch",
]

setup_logging("INFO")
Expand Down
24 changes: 12 additions & 12 deletions results/intermittent/report.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Cell: `ok` = completed (stop pulse + __nvm_done) and return code equals the unin
| poly1305 (68) | 10/10 / 10/10 / 1366 / 81 / 22.26 | 10/10 / 10/10 / 4409 / 172 / 61.56 | 10/10 / 10/10 / 2949 / 142 / 44.93 | 10/10 / 10/10 / 2089 / 105 / 32.94 |
| cuckoo_filter (4048) | 10/10 / 10/10 / 169 / 3 / 1.69 | 10/10 / 10/10 / 1902 / 71 / 26.46 | 10/10 / 10/10 / 1018 / 49 / 15.46 | 10/10 / 10/10 / 178 / 3 / 1.80 |
| sha256_fixed (131) | 10/10 / 10/10 / 184 / 9 / 2.44 | 10/10 / 10/10 / 1098 / 35 / 14.31 | 10/10 / 10/10 / 425 / 13 / 5.63 | 10/10 / 10/10 / 346 / 15 / 4.86 |
| stringsearch_fixed (20) | 10/10 / 10/10 / 208 / 2 / 1.98 | 9/10 / 9/9 / 7991 / 360 / 118.34 | 10/10 / 10/10 / 600 / 19 / 7.63 | 10/10 / 10/10 / 232 / 5 / 2.45 |
| stringsearch (20) | 10/10 / 10/10 / 208 / 2 / 1.98 | 9/10 / 9/9 / 7991 / 360 / 118.34 | 10/10 / 10/10 / 600 / 19 / 7.63 | 10/10 / 10/10 / 232 / 5 / 2.45 |

## Per trace: waits by benchmark x algorithm (`inc` = incomplete)

Expand All @@ -49,7 +49,7 @@ Cell: `ok` = completed (stop pulse + __nvm_done) and return code equals the unin
| poly1305 | 132 | 322 | 275 | 185 |
| cuckoo_filter | 14 | 131 | 88 | 14 |
| sha256_fixed | 18 | 76 | 37 | 34 |
| stringsearch_fixed | 15 | 609 | 46 | 17 |
| stringsearch | 15 | 609 | 46 | 17 |

### trace 2

Expand All @@ -67,7 +67,7 @@ Cell: `ok` = completed (stop pulse + __nvm_done) and return code equals the unin
| poly1305 | 131 | 409 | 279 | 193 |
| cuckoo_filter | 15 | 175 | 95 | 17 |
| sha256_fixed | 18 | 96 | 41 | 33 |
| stringsearch_fixed | 21 | 813 | 59 | 21 |
| stringsearch | 21 | 813 | 59 | 21 |

### trace 3

Expand All @@ -85,7 +85,7 @@ Cell: `ok` = completed (stop pulse + __nvm_done) and return code equals the unin
| poly1305 | 129 | 666 | 341 | 243 |
| cuckoo_filter | 20 | 304 | 121 | 21 |
| sha256_fixed | 17 | 181 | 56 | 33 |
| stringsearch_fixed | 25 | 1513 | 84 | 29 |
| stringsearch | 25 | 1513 | 84 | 29 |

### trace 4

Expand All @@ -103,7 +103,7 @@ Cell: `ok` = completed (stop pulse + __nvm_done) and return code equals the unin
| poly1305 | 137 | 525 | 285 | 185 |
| cuckoo_filter | 18 | 224 | 105 | 18 |
| sha256_fixed | 19 | 138 | 42 | 34 |
| stringsearch_fixed | 25 | inc | 63 | 29 |
| stringsearch | 25 | inc | 63 | 29 |

### trace 5

Expand All @@ -121,7 +121,7 @@ Cell: `ok` = completed (stop pulse + __nvm_done) and return code equals the unin
| poly1305 | 138 | 402 | 288 | 215 |
| cuckoo_filter | 18 | 175 | 101 | 21 |
| sha256_fixed | 19 | 102 | 43 | 35 |
| stringsearch_fixed | 22 | 849 | 61 | 23 |
| stringsearch | 22 | 849 | 61 | 23 |

### trace 6

Expand All @@ -139,7 +139,7 @@ Cell: `ok` = completed (stop pulse + __nvm_done) and return code equals the unin
| poly1305 | 131 | 383 | 273 | 203 |
| cuckoo_filter | 17 | 161 | 98 | 17 |
| sha256_fixed | 17 | 91 | 34 | 33 |
| stringsearch_fixed | 19 | 761 | 54 | 22 |
| stringsearch | 19 | 761 | 54 | 22 |

### trace 7

Expand All @@ -157,7 +157,7 @@ Cell: `ok` = completed (stop pulse + __nvm_done) and return code equals the unin
| poly1305 | 128 | 391 | 273 | 190 |
| cuckoo_filter | 16 | 177 | 94 | 17 |
| sha256_fixed | 17 | 99 | 41 | 33 |
| stringsearch_fixed | 21 | 795 | 56 | 21 |
| stringsearch | 21 | 795 | 56 | 21 |

### trace 8

Expand All @@ -175,7 +175,7 @@ Cell: `ok` = completed (stop pulse + __nvm_done) and return code equals the unin
| poly1305 | 148 | 559 | 323 | 252 |
| cuckoo_filter | 20 | 247 | 117 | 21 |
| sha256_fixed | 20 | 136 | 49 | 37 |
| stringsearch_fixed | 26 | 1182 | 74 | 28 |
| stringsearch | 26 | 1182 | 74 | 28 |

### trace 9

Expand All @@ -193,7 +193,7 @@ Cell: `ok` = completed (stop pulse + __nvm_done) and return code equals the unin
| poly1305 | 137 | 365 | 298 | 204 |
| cuckoo_filter | 18 | 151 | 97 | 18 |
| sha256_fixed | 19 | 89 | 38 | 35 |
| stringsearch_fixed | 19 | 728 | 51 | 20 |
| stringsearch | 19 | 728 | 51 | 20 |

### trace 10

Expand All @@ -211,7 +211,7 @@ Cell: `ok` = completed (stop pulse + __nvm_done) and return code equals the unin
| poly1305 | 155 | 387 | 314 | 219 |
| cuckoo_filter | 13 | 157 | 102 | 14 |
| sha256_fixed | 20 | 90 | 44 | 39 |
| stringsearch_fixed | 15 | 741 | 52 | 22 |
| stringsearch | 15 | 741 | 52 | 22 |

## Per benchmark x algorithm x trace

Expand Down Expand Up @@ -323,7 +323,7 @@ Cell: `ok` = completed (stop pulse + __nvm_done) and return code equals the unin
| schematic | ok w=37 rec=1 t=2.58s | ok w=41 rec=0 t=1.86s | ok w=56 rec=0 t=1.05s | ok w=42 rec=0 t=11.13s | ok w=43 rec=2 t=8.08s | ok w=34 rec=0 t=1.65s | ok w=41 rec=0 t=6.56s | ok w=49 rec=4 t=6.99s | ok w=38 rec=0 t=8.42s | ok w=44 rec=6 t=7.95s |
| schematicO3 | ok w=34 rec=1 t=2.53s | ok w=33 rec=0 t=1.62s | ok w=33 rec=0 t=0.67s | ok w=34 rec=1 t=8.67s | ok w=35 rec=2 t=6.27s | ok w=33 rec=0 t=1.61s | ok w=33 rec=0 t=5.52s | ok w=37 rec=3 t=5.51s | ok w=35 rec=2 t=8.33s | ok w=39 rec=6 t=7.91s |

### stringsearch_fixed (baseline result 20)
### stringsearch (baseline result 20)

| algo | tr1 | tr2 | tr3 | tr4 | tr5 | tr6 | tr7 | tr8 | tr9 | tr10 |
|---|---|---|---|---|---|---|---|---|---|---|
Expand Down
2 changes: 1 addition & 1 deletion results/intermittent/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# traces. Resumable: a (benchmark, algo) CSV with one row per trace is skipped;
# a partial one (interrupted run) is deleted and redone.
cd "$(dirname "$0")/../.." || exit 1
BENCHMARKS="aes crc rsa dijkstra qsort activity_recognition bitcount chacha20 sensor_fusion poly1305 cuckoo_filter sha256_fixed stringsearch_fixed"
BENCHMARKS="aes crc rsa dijkstra qsort activity_recognition bitcount chacha20 sensor_fusion poly1305 cuckoo_filter sha256_fixed stringsearch"
ALGOS="milp rockclimb schematic schematicO3"
TRACES=1,2,3,4,5,6,7,8,9,10
NTRACES=10
Expand Down
11 changes: 11 additions & 0 deletions results/intermittent/stringsearch/milp.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
benchmark,capacitor,trace,status,region_boundaries,compilation_time_ms,profiling_time_ms,replay_seconds,execution_time_us,runtime_region_boundary_calls,runtime_wait_count,runtime_recovery_boots,result
stringsearch,board,1,ok,5,317,667,2.28,195335.25,,15,0,20
stringsearch,board,2,ok,5,317,667,3.23,705316.37,,21,0,20
stringsearch,board,3,ok,5,317,667,4.15,306573.92,,25,0,20
stringsearch,board,4,ok,5,317,667,7.77,5238685.13,,25,0,20
stringsearch,board,5,ok,5,317,667,5.65,3164907.24,,22,1,20
stringsearch,board,6,ok,5,317,667,2.97,1111396.51,,19,0,20
stringsearch,board,7,ok,5,317,667,4.71,3070378.24,,21,0,20
stringsearch,board,8,ok,5,317,667,5.07,2388693.79,,26,1,20
stringsearch,board,9,ok,5,317,667,6.12,3381397.35,,19,0,20
stringsearch,board,10,ok,5,317,667,1.95,195066.87,,15,0,20
11 changes: 11 additions & 0 deletions results/intermittent/stringsearch/rockclimb.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
benchmark,capacitor,trace,status,region_boundaries,compilation_time_ms,profiling_time_ms,replay_seconds,execution_time_us,runtime_region_boundary_calls,runtime_wait_count,runtime_recovery_boots,result
stringsearch,board,1,ok,8,1,0,50.82,48771746.86,,609,19,20
stringsearch,board,2,ok,8,1,0,63.25,60649105.41,,813,15,20
stringsearch,board,3,ok,8,1,0,60.41,56538987.04,,1513,14,20
stringsearch,board,4,incomplete,8,1,0,209.59,,,,,
stringsearch,board,5,ok,8,1,0,170.01,167435070.55,,849,54,20
stringsearch,board,6,ok,8,1,0,75.17,73326835.21,,761,14,20
stringsearch,board,7,ok,8,1,0,130.51,128763235.09,,795,0,20
stringsearch,board,8,ok,8,1,0,189.73,187146437.18,,1182,121,20
stringsearch,board,9,ok,8,1,0,183.63,180833671.24,,728,0,20
stringsearch,board,10,ok,8,1,0,163.35,161628023.13,,741,123,20
11 changes: 11 additions & 0 deletions results/intermittent/stringsearch/schematic.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
benchmark,capacitor,trace,status,region_boundaries,compilation_time_ms,profiling_time_ms,replay_seconds,execution_time_us,runtime_region_boundary_calls,runtime_wait_count,runtime_recovery_boots,result
stringsearch,board,1,ok,6,3,599,4.81,2684370.54,,46,1,20
stringsearch,board,2,ok,6,3,599,6.91,4325362.96,,59,1,20
stringsearch,board,3,ok,6,3,599,5.26,1305452.47,,84,0,20
stringsearch,board,4,ok,6,3,599,16.45,13936256.96,,63,0,20
stringsearch,board,5,ok,6,3,599,13.67,11185165.0,,61,3,20
stringsearch,board,6,ok,6,3,599,6.58,4695178.15,,54,1,20
stringsearch,board,7,ok,6,3,599,10.77,9028889.63,,56,0,20
stringsearch,board,8,ok,6,3,599,12.77,10154306.97,,74,6,20
stringsearch,board,9,ok,6,3,599,13.65,10910445.66,,51,1,20
stringsearch,board,10,ok,6,3,599,9.85,8061779.88,,52,6,20
11 changes: 11 additions & 0 deletions results/intermittent/stringsearch/schematicO3.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
benchmark,capacitor,trace,status,region_boundaries,compilation_time_ms,profiling_time_ms,replay_seconds,execution_time_us,runtime_region_boundary_calls,runtime_wait_count,runtime_recovery_boots,result
stringsearch,board,1,ok,4,2,810,2.34,222568.19,,17,0,20
stringsearch,board,2,ok,4,2,810,3.35,722558.65,,21,0,20
stringsearch,board,3,ok,4,2,810,4.24,356535.47,,29,0,20
stringsearch,board,4,ok,4,2,810,8.49,6036410.19,,29,0,20
stringsearch,board,5,ok,4,2,810,5.77,3190619.46,,23,1,20
stringsearch,board,6,ok,4,2,810,3.02,1125077.85,,22,0,20
stringsearch,board,7,ok,4,2,810,4.78,3085789.27,,21,0,20
stringsearch,board,8,ok,4,2,810,4.99,2404458.99,,28,1,20
stringsearch,board,9,ok,4,2,810,6.19,3424477.75,,20,0,20
stringsearch,board,10,ok,4,2,810,5.69,3967698.43,,22,3,20
11 changes: 0 additions & 11 deletions results/intermittent/stringsearch_fixed/milp.csv

This file was deleted.

11 changes: 0 additions & 11 deletions results/intermittent/stringsearch_fixed/rockclimb.csv

This file was deleted.

11 changes: 0 additions & 11 deletions results/intermittent/stringsearch_fixed/schematic.csv

This file was deleted.

Loading
Loading