Socket
Socket
Sign inDemoInstall

ts-benchmark

Package Overview
Dependencies
42
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ts-benchmark

A command line interface for monitoring the performance of typescript.


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Install size
1.38 MB
Created
Weekly downloads
 

Readme

Source

ts-benchmark




Installation:

npm i ts-benchmark -g

Description:

A command line interface for monitoring the performance of typescript.

Features:

  • Ability to specify specific fields of benchmark result.
  • Watcher which trigger benchmark process on any change made to the specified path.
  • It can be use to benchmark two different branches.


Usage:

Benchmark the current directory:


ts-benchmark

Benchmark test folder which is test project and watch changes on src folder to trigger benchmark:


ts-benchmark -p ./test -w ./src

Like the previous command but it will shows specific fields of benchmark result instead of all fields:


ts-benchmark -p ./test -w ./src -f 17 18 29 32

Similar to the previous command but it will check if field 17 has reached the maximum valid value "10000":


ts-benchmark -p ./test -w ./src -f 17/10000 18 29 32

Benchmark test folder watch changes on src folder after benchmark master branch:


ts-benchmark -p ./test -w ./src -b master


Options:

optiondescriptiontypedefault
-p, --pathA relative path to project that will be benchmarked.string./
-w, --watchA relative path to a directory or a file that trigger benchmark process on any changes.stringundefined
-b, --branchAnother git branch name to be benchmarked and compared with the current branch.stringundefined
-s, --saveTo save and show the previous benchmark result.booleanfalse
-i, --initialTo save and show the initial benchmark result.booleanfalse
-f, --fieldsTo pick and show specific fields of benchmark result by its index numbers. Maximum valid valid can be set by adding "/" and then maximum value like: 17/10000array of index numbers between 1-32undefined
-g, --githubTo make the tool integrate with github workflow. "will throw error on failure if a field has overpassed its maximum valid value."booleanfalse
-t, --targetUseful for benchmarking targeted branch of github pull request. -g flag should also be set to true as well."booleanfalse
--helpShow helpbooleanfalse
--versionShow versionbooleanfalse

Fields indexes:
indexfieldindexfieldindexfield
1Files2Lines of Library3Lines of Definitions
4Lines of TypeScript5Lines of JavaScript6Lines of JSON
7Lines of Other8Nodes of Library9Nodes of Definitions
10Nodes of TypeScript11Nodes of JavaScript12Nodes of JSON
13Nodes of Other14Identifiers15Symbols
16Types17Instantiations18Memory used
19Assignability cache size20Identity cache size21Subtype cache size
22Strict subtype cache size23I/O Read time24Parse time
25ResolveModule time26ResolveTypeReference time27Program time
28Bind time29Check time30printTime time
31Emit time32Total time

Keywords

FAQs

Last updated on 28 Aug 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc