Giter Site home page Giter Site logo

js-test-benchmark's Introduction

js-test-benchmark

Usage

生成测试用例

#模式一:
node ./testCaseFactory/createCase.js xx
# 在10个测试文件中生成xx个测试用例,xx必须是50的倍数且不大于100000

#模式二:
node ./testCaseFactory/createCase100.js xx
# 在100个测试文件中生成xx个测试用例,xx必须是500的倍数且不大于100000
pnpm install
pnpm run test:ben-windows

or

pnpm install
pnpm run test:ben-linux

Output

Mean是所有基准测试运行的平均时间, 后面的数字±表示该平均值的统计误差的大小, 它是所有测量时间的(校正样本)标准偏差。

Command Mean [s] Min [s] Max [s] Relative
pnpm run test:jest 5.046 ± 0.579 4.685 5.713 1.47 ± 0.23
pnpm run test:vitest 3.434 ± 0.356 3.124 3.823 1.00
pnpm run test:jest:inline 5.589 ± 0.278 5.283 5.826 1.63 ± 0.19
pnpm run test:vitest:inline 3.521 ± 0.418 3.234 4.001 1.03 ± 0.16

js-test-benchmark's People

Contributors

konpeki622 avatar wangsongc avatar zhenxiongqian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.