MCPcopy Create free account
hub / github.com/FastLED/FastLED / run_small_benchmark

Function run_small_benchmark

tests/profile/benchmark_json_parsers.cpp:112–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112bool 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
134bool run_large_benchmark() {
135 bool success = true;

Callers 1

mainFunction · 0.70

Calls 1

run_benchmarkFunction · 0.70

Tested by

no test coverage detected