JavaScript Restrictor
Browser extension that improves privacy and security
Loading...
Searching...
No Matches
benchmark.js File Reference

Webextension benchmarking script using Google Lighthouse. More...

import as;
Include dependency graph for benchmark.js:

Functions

function conditionalLog (condition,...args)
 
function checkFileExists (dir, file)
 
function buildExtension (dir)
 
function parseArgs ()
 
function async runBenchmarks (chromeInstances, argv)
 
function async main ()
 

Variables

let runCount = config.runCount
 
let outFile = null
 
let urls = config.urls
 
const helpString
 
const example
 
const you can prepend !to the definition
 
const you can prepend !to the the path must lead to a directory with a Makefile where make will be executed The build output is expected to be in build chrome by default and can be set
 
const benchmarkCollector
 

Detailed Description

Webextension benchmarking script using Google Lighthouse.

Author
Copyright (C) 2023 Martin Zmitko
License:
SPDX-License-Identifier: GPL-3.0-or-later

Function Documentation

◆ buildExtension()

function buildExtension (   dir)
Here is the caller graph for this function:

◆ checkFileExists()

function checkFileExists (   dir,
  file 
)
Here is the caller graph for this function:

◆ conditionalLog()

function conditionalLog (   condition,
  args 
)
Here is the caller graph for this function:

◆ main()

function async main ( )
Here is the call graph for this function:

◆ parseArgs()

function parseArgs ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runBenchmarks()

function async runBenchmarks (   chromeInstances,
  argv 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ benchmarkCollector

const benchmarkCollector

◆ definition

const you can prepend !to the definition

◆ example

const you can prepend !to the example

◆ helpString

const helpString
Initial value:
= 'Defining extensions:\n
At least 1 path to a directory with manifest.js is required. The path can be relative to performance_tests or absolute.
There are 2 keywords with special behaviour you can use instead of a path: "none" to benchmark with no extension and
"this" to build and benchmark JShelter in this repository. You can explicitly define names of extensions by prepending
the desired name to the path or keyword with a colon

◆ outFile

let outFile = null

◆ runCount

let runCount = config.runCount

◆ set

const you can prepend !to the the path must lead to a directory with a Makefile where make will be executed The build output is expected to be in build chrome by default and can be set

◆ urls

let urls = config.urls