-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into spy/sandbox-for-all-e2e
- Loading branch information
Showing
75 changed files
with
1,235 additions
and
776 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
barretenberg/cpp/src/barretenberg/benchmark/honk_bench/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
barretenberg/cpp/src/barretenberg/benchmark/relations_bench/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
barretenberg/cpp/src/barretenberg/benchmark/relations_bench/widget.bench.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#include "barretenberg/benchmark/honk_bench/benchmark_utilities.hpp" | ||
#include "barretenberg/honk/flavor/goblin_ultra.hpp" | ||
#include "barretenberg/honk/flavor/ultra.hpp" | ||
#include "barretenberg/plonk/composer/standard_composer.hpp" | ||
#include "barretenberg/plonk/composer/ultra_composer.hpp" | ||
#include "barretenberg/plonk/proof_system/widgets/transition_widgets/plookup_auxiliary_widget.hpp" | ||
#include <benchmark/benchmark.h> | ||
|
||
namespace { | ||
auto& engine = numeric::random::get_debug_engine(); | ||
} | ||
|
||
namespace proof_system::plonk { | ||
|
||
template <typename Flavor, typename Widget> void execute_widget(::benchmark::State& state) | ||
{ | ||
barretenberg::srs::init_crs_factory("../srs_db/ignition"); | ||
auto inner_composer = plonk::UltraComposer(); | ||
auto builder = typename plonk::UltraComposer::CircuitBuilder(); | ||
bench_utils::generate_basic_arithmetic_circuit(builder, 80); | ||
auto inner_prover = inner_composer.create_prover(builder); | ||
auto inner_proof = inner_prover.construct_proof(); | ||
for (auto _ : state) { | ||
Widget widget(inner_composer.circuit_proving_key.get()); | ||
widget.compute_quotient_contribution(barretenberg::fr::random_element(), inner_prover.transcript); | ||
} | ||
} | ||
|
||
void plookup_auxiliary_widget(::benchmark::State& state) noexcept | ||
{ | ||
execute_widget<honk::flavor::Ultra, ProverPlookupAuxiliaryWidget<ultra_settings>>(state); | ||
} | ||
BENCHMARK(plookup_auxiliary_widget); | ||
|
||
} // namespace proof_system::plonk |
18 changes: 18 additions & 0 deletions
18
barretenberg/cpp/src/barretenberg/common/compiler_hints.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
#ifdef _WIN32 | ||
#define BBERG_INLINE __forceinline inline | ||
#else | ||
#define BBERG_INLINE __attribute__((always_inline)) inline | ||
#endif | ||
|
||
// TODO(AD): Other compilers | ||
#if defined(__clang__) | ||
#define BBERG_INSTRUMENT [[clang::xray_always_instrument]] | ||
#define BBERG_NO_INSTRUMENT [[clang::xray_never_instrument]] | ||
#define BBERG_NOINLINE [[clang::noinline]] | ||
#else | ||
#define BBERG_INSTRUMENT | ||
#define BBERG_NO_INSTRUMENT | ||
#define BBERG_NOINLINE | ||
#endif |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.