Sponge
CS144's user-space TCP library
Functions | Variables
tcp_benchmark.cc File Reference
#include "tcp_connection.hh"
#include <chrono>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <string>
Include dependency graph for tcp_benchmark.cc:

Go to the source code of this file.

Functions

int main ()
 
void main_loop (const bool reorder)
 
void move_segments (TCPConnection &x, TCPConnection &y, vector< TCPSegment > &segments, const bool reorder)
 

Variables

constexpr size_t len = 100 * 1024 * 1024
 

Function Documentation

◆ main()

int main ( )

Definition at line 106 of file tcp_benchmark.cc.

◆ main_loop()

void main_loop ( const bool  reorder)

Definition at line 31 of file tcp_benchmark.cc.

◆ move_segments()

void move_segments ( TCPConnection x,
TCPConnection y,
vector< TCPSegment > &  segments,
const bool  reorder 
)

Definition at line 14 of file tcp_benchmark.cc.

Variable Documentation

◆ len

constexpr size_t len = 100 * 1024 * 1024
constexpr

Definition at line 12 of file tcp_benchmark.cc.