benchmark: add doNotOptimizeAway to OSC benchmark

Jeffrey C. Ollie 2025-12-17 12:57:27 -06:00
parent c84113d199
commit 0f81d7dbe6
No known key found for this signature in database
GPG Key ID: 1BB9EB7EA602265B
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ fn step(ptr: *anyopaque) Benchmark.Error!void {
};
for (osc_buf[0..len]) |c| self.parser.next(c);
_ = self.parser.end(std.ascii.control_code.bel);
std.mem.doNotOptimizeAway(self.parser.end(std.ascii.control_code.bel));
self.parser.reset();
}
}