harbor run -t openthoughts/tasktrove-exp-rpt-pr-pr-1513harbor download openthoughts/tasktrove-exp-rpt-pr-pr-1513This task asks you to create a small, self-contained Linux project that mimics a subset of the OMDataStreamProperty interface and uses it to benchmark streaming throughput. The change is motivated by the commit message to implement a toy version and a terminal-based benchmark.
Introduce a self-contained Linux project under /app/ that:
The solution should be self-contained (no external dependencies beyond the C++ standard library) and easily buildable on typical Linux systems (e.g., using CMake).
The project should not rely on or reveal the exact internal patch or diff details from the commit; instead, it should implement the described behavior and API surface.
The repository currently contains a placeholder file before the change. Use the exact contents shown below as the starting state for the pre-commit file:
# Placeholder — original code before the change
pass
This block represents the file(s) as they exist prior to implementing the new toy property and benchmark.
Create or modify the following files under /app/ to implement the feature:
Build system
Core interface and toy property
Benchmark
Utilities (optional)
Documentation / README
Notes:
ToyDataStreamProperty
Benchmark
Build and Run
Define a lean interface (either as a small abstract class or a simple struct with virtual methods) that represents the subset of OMDataStreamProperty you want to emulate. The interface should include at least read, write, size, and reset capabilities.
Implement ToyDataStreamProperty that:
Benchmark harness:
Build notes:
Edge cases to consider:
If you need adjustments to the file layout or naming conventions, you can adapt as long as the core concepts (toy property and throughput benchmark) are present and the project builds cleanly.