Skip to content

Commit

Permalink
Add benchmarks for 2xDR4 and 2xFR4
Browse files Browse the repository at this point in the history
Summary: title

Reviewed By: shiva-menta

Differential Revision:
D69705699

Privacy Context Container: L1125642

fbshipit-source-id: e9827f3de31dc113f43fc38a441ea0e6bdb84508
  • Loading branch information
Harshit Gulati authored and facebook-github-bot committed Feb 15, 2025
1 parent eaab4ed commit 288aab1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*
*/
#include <folly/Benchmark.h>
#include <unordered_set>

#include "fboss/qsfp_service/platforms/wedge/WedgeManager.h"
#include "fboss/qsfp_service/test/benchmarks/HwBenchmarkUtils.h"

namespace facebook::fboss {
Expand All @@ -35,4 +33,12 @@ BENCHMARK_MULTI(ReadRegister_LR4_400G_10KM) {
return readOneByte(MediaInterfaceCode::LR4_400G_10KM);
}

BENCHMARK_MULTI(ReadRegister_FR4_2x400G) {
return readOneByte(MediaInterfaceCode::FR4_2x400G);
}

BENCHMARK_MULTI(ReadRegister_DR4_2x400G) {
return readOneByte(MediaInterfaceCode::DR4_2x400G);
}

} // namespace facebook::fboss
10 changes: 8 additions & 2 deletions fboss/qsfp_service/test/benchmarks/RefreshTcvrBenchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*
*/
#include <folly/Benchmark.h>
#include <unordered_set>

#include "fboss/qsfp_service/platforms/wedge/WedgeManager.h"
#include "fboss/qsfp_service/test/benchmarks/HwBenchmarkUtils.h"

namespace facebook::fboss {
Expand All @@ -35,4 +33,12 @@ BENCHMARK_MULTI(RefreshTransceiver_LR4_400G_10KM) {
return refreshTcvrs(MediaInterfaceCode::LR4_400G_10KM);
}

BENCHMARK_MULTI(RefreshTransceiver_DR4_2x400G) {
return refreshTcvrs(MediaInterfaceCode::DR4_2x400G);
}

BENCHMARK_MULTI(RefreshTransceiver_FR4_2x400G) {
return refreshTcvrs(MediaInterfaceCode::FR4_2x400G);
}

} // namespace facebook::fboss

0 comments on commit 288aab1

Please sign in to comment.