memorystress

package
v0.0.0-...-9474aff Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package memorystress opens synthetic pages to create memory pressure.

Index

Constants

View Source
const (
	AllocPageFilename  = "memory_stress.html"
	JavascriptFilename = "memory_stress.js"
)

Web page filenames to allocate a lot of JavaScript objects.

Variables

This section is empty.

Functions

func ReportTestCaseResult

func ReportTestCaseResult(ctx context.Context, perfValues *perf.Values, result TestCaseResult, label string) error

ReportTestCaseResult writes the test case result to perfValues and prints the test case result.

Types

type TestCaseResult

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

TestCaseResult is the result of a stress test case.

func TestCase

func TestCase(ctx context.Context, br *browser.Browser, localRand *rand.Rand, mbPerTab, switchCount int, compressRatio float64, baseURL string) (TestCaseResult, error)

TestCase opens synthetic pages to allocate JavaScript objects to create memory pressure.

Jump to

Keyboard shortcuts

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