Skip to content

zhenzhenChange/control-variates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Control Variates

使用控制变量法进行自动化测试。

启动

pnpm i
pnpm benchmark

基准测试结果

  • xxx/run-[fixture.name || fixture.index]-results/benchmark.html
  • xxx/run-[fixture.name || fixture.index]-results/benchmark.json

基准测试参考

依赖

  • tsx: Executing code in node using ESM and TS.
  • uuid: Generate a random temporary directory.
  • chalk: Beautifying console output.
  • rimraf: For file deletion.
  • typescript: Written with TS.
  • iconv-lite: Solving the problem of messy Chinese output on the console.
  • cross-spawn: Cross-platform compatible sub-process calls.

变量

系统参数:

  • CPU
  • RAM
  • DISK
  • Node
  • Project

测试参数:

  • cache
  • lockfile
  • node_modules

公平参数:

  • registry
  • cacheDir
  • storeDir
  • ignoreScripts
  • ignoreEngines
  • ignorePeerDeps
command cache lockfile node_modules
install
install
install
install
install
install
install
install
dynamic N/A N/A N/A

Todo

  • 可视化输出
    • 安装命令
    • 系统配置
    • 磁盘占用
  • 跨平台兼容
  • 文件删除
    • 异步删除
    • 删除耗时
    • 删除进度
  • 支持monorepo
  • 支持多线程(支持限制系统参数)
    • Rewritten with Rust

About

Automated testing using the control variable method.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors