| 110 | } |
| 111 | |
| 112 | bool run_small_benchmark() { |
| 113 | bool success = true; |
| 114 | |
| 115 | const char* small_json = R"({ |
| 116 | "version": "1.0", |
| 117 | "fps": 60, |
| 118 | "brightness": 0.85, |
| 119 | "strips": [ |
| 120 | {"id": "strip_0", "type": "WS2812B", "length": 100}, |
| 121 | {"id": "strip_1", "type": "APA102", "length": 100}, |
| 122 | {"id": "strip_2", "type": "WS2812B", "length": 100} |
| 123 | ], |
| 124 | "effects": [ |
| 125 | {"name": "rainbow", "speed": 1.5, "brightness": 0.9}, |
| 126 | {"name": "twinkle", "speed": 2.0, "brightness": 0.7} |
| 127 | ] |
| 128 | })"; |
| 129 | |
| 130 | run_benchmark("TEST 1: SMALL JSON (2.3KB Synthetic)", small_json, 1000, success); |
| 131 | return success; |
| 132 | } |
| 133 | |
| 134 | bool run_large_benchmark() { |
| 135 | bool success = true; |