Create a server using: ./data_channel_benchmark --server --port 12345 Start the flow of data from the server to a client using: ./data_channel_benchmark --port 12345 --transfer_size 100 The throughput is reported on the server console. The negotiation does not require a 3rd party server and is done over a gRPC transport. No TURN server is configured, so both peers need to be reachable using STUN only. Bug: webrtc:13288 Change-Id: Iac9a96cf390ab465ea45a46bf0b40950c56dfceb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/235661 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Florent Castelli <orphis@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36206}
79 lines
2.8 KiB
C++
79 lines
2.8 KiB
C++
/*
|
|
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
// This file contains the WebRTC suppressions for ThreadSanitizer.
|
|
// Please refer to
|
|
// http://dev.chromium.org/developers/testing/threadsanitizer-tsan-v2
|
|
// for more info.
|
|
|
|
#if defined(THREAD_SANITIZER)
|
|
|
|
// Please make sure the code below declares a single string variable
|
|
// kTSanDefaultSuppressions contains TSan suppressions delimited by newlines.
|
|
// See http://dev.chromium.org/developers/testing/threadsanitizer-tsan-v2
|
|
// for the instructions on writing suppressions.
|
|
char kTSanDefaultSuppressions[] =
|
|
|
|
// WebRTC specific suppressions.
|
|
|
|
// Split up suppressions covered previously by thread.cc and
|
|
// messagequeue.cc.
|
|
"race:vp8cx_remove_encoder_threads\n"
|
|
"race:third_party/libvpx/source/libvpx/vp9/common/vp9_scan.h\n"
|
|
|
|
// rtc_unittests
|
|
// https://code.google.com/p/webrtc/issues/detail?id=2080
|
|
"race:rtc_base/logging.cc\n"
|
|
|
|
// third_party/usrsctp
|
|
// TODO(jiayl): https://code.google.com/p/webrtc/issues/detail?id=3492
|
|
"race:user_sctp_timer_iterate\n"
|
|
|
|
// https://code.google.com/p/webrtc/issues/detail?id=5151
|
|
"race:sctp_close\n"
|
|
|
|
// lock-order-inversion in usrsctp
|
|
// TODO(orphis): https://crbug.com/webrtc/12823
|
|
"deadlock:usrsctp_conninput\n"
|
|
"deadlock:usrsctp_connect\n"
|
|
|
|
// data race in usrsctp
|
|
// https://crbug.com/webrtc/9850
|
|
"race:sctp_process_cookie_existing\n"
|
|
|
|
// Potential deadlocks detected after roll in r6516.
|
|
// https://code.google.com/p/webrtc/issues/detail?id=3509
|
|
"deadlock:webrtc::test::UdpSocketManagerPosixImpl::RemoveSocket\n"
|
|
|
|
// TODO(pbos): Trace events are racy due to lack of proper POD atomics.
|
|
// https://code.google.com/p/webrtc/issues/detail?id=2497
|
|
"race:*trace_event_unique_catstatic*\n"
|
|
|
|
// Race between InitCpuFlags and TestCpuFlag in libyuv.
|
|
// https://code.google.com/p/libyuv/issues/detail?id=508
|
|
"race:InitCpuFlags\n"
|
|
|
|
// Test-only race due to PeerConnection::session() being virtual for
|
|
// testing. The stats collector may call session() before or after the
|
|
// destructor begins executing, which modifies the vtable.
|
|
"race:*RTCStatsIntegrationTest_GetsStatsWhileDestroyingPeerConnections_"
|
|
"Test::TestBody\n"
|
|
|
|
// http://crbug.com/244856
|
|
"race:libpulsecommon*.so\n"
|
|
|
|
// https://crbug.com/1158622
|
|
"race:absl::synchronization_internal::Waiter::Post\n"
|
|
|
|
// End of suppressions.
|
|
; // Please keep this semicolon.
|
|
|
|
#endif // THREAD_SANITIZER
|