SingleInstanceMultiplePatchesBenchmarks.h 886 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #if defined(HAVE_BENCHMARK)
  9. #pragma once
  10. #include <Prefab/Benchmark/PrefabBenchmarkFixture.h>
  11. namespace Benchmark
  12. {
  13. //! This class captures benchmarks around CRUD operations on patches to a single prefab instance with multiple entities that are side-by-side.
  14. class SingleInstanceMultiplePatchesBenchmarks : public BM_Prefab
  15. {
  16. protected:
  17. void SetupHarness(const benchmark::State& state) override;
  18. void TeardownHarness(const benchmark::State& state) override;
  19. AZStd::unique_ptr<PrefabDom> m_linkDomToSet;
  20. AZStd::unique_ptr<Instance> m_parentInstance;
  21. LinkId m_linkId;
  22. };
  23. } // namespace Benchmark
  24. #endif