bench

package
v0.0.0-...-32ff903 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2021 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AliceCommunicationCostResults

func AliceCommunicationCostResults(sizeMin, sizeMax, sizeRatio, countMin, countMax, countStep int64) (
	results []int64, sizes []int64, counts []int64)

func Comparison

func Comparison(sizeMin, sizeMax, sizeRatio, countMin, countMax, countStep int64) (
	ourWork, otPaper, yaoGang []float64, sizes []int64, counts []int64)

func ComparisonAlice

func ComparisonAlice(size, count, roundMin, roundMax, roundStep int64) (ourWork, otPaper []float64, rounds []int64)

Types

type CSFigure1Result

type CSFigure1Result struct {
	ExecSetupMsTimes  []float64 `json:"exec_setup_ms_times"`
	ExecHashMsTimes   []float64 `json:"exec_hash_ms_times"`
	ExecMerkleMsTimes []float64 `json:"exec_merkle_ms_times"`
	ExecUpdateMsTimes []float64 `json:"exec_update_ms_times"`
	FileSizes         []int64   `json:"file_sizes"`
	BlockCounts       []int64   `json:"block_counts"`
	BlockSizes        []int64   `json:"block_sizes"`
}

Cloud Storage Figure1 includes: Setup (key generation), Chameleon Hash, Merkle Tree, Update Block

func CSFigure1

func CSFigure1(rounds int, blockCounts, blockSizes []int64) (*CSFigure1Result, error)

Cloud Storage Figure1 includes: Setup (key generation), Chameleon Hash, Merkle Tree, Update Block

type CSFigure2Result

type CSFigure2Result struct {
	ExecUpdateMsTimes [][]float64 `json:"exec_update_ms_times"`
	TransCostKiB      [][]float64 `json:"trans_cost_kib"`
	UpdateCount       int64       `json:"update_count"`
	BlockSizes        []int64     `json:"block_sizes"`
}

Cloud Storage Figure2 includes: Update Block, Transmission Cost

func CSFigure2

func CSFigure2(rounds int, updateCount int64, blockSizes []int64) (*CSFigure2Result, error)

Cloud Storage Figure2 includes: Update Block, Transmission Cost

type ExecResult

type ExecResult struct {
	// contains filtered or unexported fields
}

func ExecutionResults

func ExecutionResults() []ExecResult

func ShareMessageResults

func ShareMessageResults(sizeMin, sizeMax, sizeRatio, countMin, countMax, countStep int64) (
	results []ExecResult, sizes []int64, counts []int64)

func (ExecResult) MsPerOp

func (r ExecResult) MsPerOp() float64

func (ExecResult) NsPerOp

func (r ExecResult) NsPerOp() int64

func (ExecResult) String

func (r ExecResult) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL