Skip to content

Commit

Permalink
add field for TTFB
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhi.li committed Oct 31, 2023
1 parent 59a7fea commit d17929c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions perf-site-replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ import (

// SiteNetPerfNodeResult - stats from each server
type SiteNetPerfNodeResult struct {
Endpoint string `json:"endpoint"`
TX uint64 `json:"tx"` // transfer rate in bytes
TXTotalDuration time.Duration `json:"txTotalDuration"`
RX uint64 `json:"rx"` // received rate in bytes
RXTotalDuration time.Duration `json:"rxTotalDuration"`
TotalConn uint64 `json:"totalConn"`
Error string `json:"error,omitempty"`
Endpoint string `json:"endpoint"`
TX uint64 `json:"tx"` // transfer rate in bytes
TXTotalDuration time.Duration `json:"txTotalDuration"`
TXTotalSpentDuration time.Duration `json:"txTotalSpentDuration"`
RX uint64 `json:"rx"` // received rate in bytes
RXTotalDuration time.Duration `json:"rxTotalDuration"`
TotalConn uint64 `json:"totalConn"`
Error string `json:"error,omitempty"`
}

// SiteNetPerfResult - aggregate results from all servers
Expand Down

0 comments on commit d17929c

Please sign in to comment.