#include "../include/rnn_wrapper.hpp"
#include <iostream>
int main() {
rnn::BenchmarkRecord record{};
record.model_name = "sample_model.rnn";
record.precision = "f32";
record.elapsed_ms = 123;
record.iterations = 42;
record.avg_loss = 0.12f;
record.last_loss = 0.08f;
record.output_bytes = 2048;
auto blob = rnn::encode_benchmark_blob(record);
auto decoded = rnn::decode_benchmark_blob(blob);
std::cout << "api_version=" << rnn::api_version() << "\n";
std::cout << "encoded_bytes=" << blob.size() << "\n";
std::cout << "decoded.model_name=" << decoded.model_name << "\n";
std::cout << "decoded.precision=" << decoded.precision << "\n";
std::cout << "decoded.iterations=" << decoded.iterations << "\n";
return 0;
}