===========================================
     NEUNVS vs PREFERENCES BENCHMARK
===========================================
NeuNVS Init OK
Preferences Init OK

--- TEST 1: INT Write (20x) ---
[NeuNVS Error] Code: 1, ID: 0
  -> LOCKDOWN ACTIVE! Write blocked.
NeuNVS   : 22458 us
Prefs    : 98901 us

--- TEST 2: INT Read (20x) ---
NeuNVS   : 15739 us
Prefs    : 3924 us

--- TEST 3: Dirty Check (Write same data 100x) ---
NeuNVS   : 53 us (XOR cache skip!)
Prefs    : 22528 us (Always write to flash)

--- TEST 4: Struct Write (20x) ---
[NeuNVS Error] Code: 1, ID: 0
  -> LOCKDOWN ACTIVE! Write blocked.
NeuNVS   : 16334 us
Prefs    : 378906 us

--- TEST 5: String Write (20x) ---
[NeuNVS Error] Code: 1, ID: 0
  -> LOCKDOWN ACTIVE! Write blocked.
NeuNVS   : 8273 us
Prefs    : 140929 us

--- TEST 6: String Read (20x) ---
NeuNVS   : 17471 us
Prefs    : 11760 us

--- TEST 7: Abuse Protection (Spam commit) ---
Spamming 15x rapid commit...
Commit  1: OK | Heat: 5.33 | Locked: no
[NeuNVS Error] Code: 1, ID: 0
  -> LOCKDOWN ACTIVE! Write blocked.
Commit  2: BLOCKED | Heat: 6.21 | Locked: YES
Commit  3: BLOCKED | Heat: 6.21 | Locked: YES
Commit  4: BLOCKED | Heat: 6.21 | Locked: YES
Commit  5: BLOCKED | Heat: 6.21 | Locked: YES
Commit  6: BLOCKED | Heat: 6.21 | Locked: YES
Commit  7: BLOCKED | Heat: 6.21 | Locked: YES
Commit  8: BLOCKED | Heat: 6.21 | Locked: YES
Commit  9: BLOCKED | Heat: 6.21 | Locked: YES
Commit 10: BLOCKED | Heat: 6.21 | Locked: YES
Commit 11: BLOCKED | Heat: 6.21 | Locked: YES
Commit 12: BLOCKED | Heat: 6.21 | Locked: YES
Commit 13: BLOCKED | Heat: 6.21 | Locked: YES
Commit 14: BLOCKED | Heat: 6.21 | Locked: YES
Commit 15: BLOCKED | Heat: 6.21 | Locked: YES

--- TEST 8: Estimated RAM Usage ---
NeuNVS _xorCache: 510 bytes (255 x 2)
NeuNVS instance overhead: ~580 bytes
Preferences overhead: ~8 bytes (depends on keys)

--- VERIFICATION: Data Dump ---

=== NeuNVS Dump ID: 1 (12 bytes) ===
Header -> Magic: 0xA5 | Ver: 1 | XOR: 0xF46F | Size: 4
[0000] BC 02 00 00                                     | ....
===========================================

=== NeuNVS Dump ID: 3 (116 bytes) ===
Header -> Magic: 0xA5 | Ver: 1 | XOR: 0x7A66 | Size: 108
[0000] 4E 65 75 4E 56 53 5F 57 69 46 69 00 00 00 00 00 | NeuNVS_WiFi.....
[0016] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
[0032] 53 65 63 75 72 65 50 61 73 73 31 32 33 00 00 00 | SecurePass123...
[0048] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
[0064] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
[0080] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
[0096] 01 01 A8 C0 00 00 B8 41 01 00 00 00             | .......A....
===========================================

=== NeuNVS Dump ID: 4 (53 bytes) ===
Header -> Magic: 0xA5 | Ver: 1 | XOR: 0x293E | Size: 45
[0000] 4E 65 75 4E 56 53 5F 54 68 65 55 6C 74 69 6D 61 | NeuNVS_TheUltima
[0016] 74 65 46 61 73 74 53 74 6F 72 61 67 65 4C 69 62 | teFastStorageLib
[0032] 72 61 72 79 46 6F 72 45 53 50 33 32 31          | raryForESP321
===========================================

Free NVS entries: 273

===========================================
             BENCHMARK DONE
===========================================
[Monitor] Heat: 6.21 | Locked: YES | Confidence: 0.38
[Monitor] Heat: 0.00 | Locked: no | Confidence: 1.00
[Monitor] Heat: 0.00 | Locked: no | Confidence: 1.00