1#include <benchmark/benchmark.h>
8using namespace benchmark;
16void bn254_point_decompression(benchmark::State& state)
24 compressed[i] = from_buffer<uint256_t>(compressed_buf, i *
sizeof(
uint256_t));
27 for (
auto _ : state) {
31 points[i] = g1::affine_element::from_compressed(compressed[i]);
34 benchmark::DoNotOptimize(points);
37BENCHMARK(bn254_point_decompression)->Unit(benchmark::kMillisecond);
constexpr size_t NUM_POINTS
std::filesystem::path bb_crs_path()
Entry point for Barretenberg command-line interface.
std::vector< uint8_t > read_file(const std::string &filename, size_t bytes=0)
BENCHMARK(bench_commit_structured_random_poly< curve::BN254 >) -> Unit(benchmark::kMillisecond)
void parallel_for(size_t num_iterations, const std::function< void(size_t)> &func)
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept