Giter Club home page Giter Club logo

nestjs-perf-test's Introduction

details

node version 16.14.0

Install

git clone https://github.com/greenreign/nestjs-perf-test.git
cd nestjs-perr-test
yarn

Test with jest

yarn test:e2e:heap

Typical Output

 PASS  test/app49.e2e-spec.ts (156 MB heap size)
 PASS  test/app7.e2e-spec.ts (170 MB heap size)
 PASS  test/app34.e2e-spec.ts (178 MB heap size)
 PASS  test/app47.e2e-spec.ts (186 MB heap size)
 PASS  test/app46.e2e-spec.ts (194 MB heap size)
 PASS  test/app21.e2e-spec.ts (203 MB heap size)
 ...
 ...
 ...
 PASS  test/app20.e2e-spec.ts (509 MB heap size)
 PASS  test/app10.e2e-spec.ts (517 MB heap size)
 PASS  test/app23.e2e-spec.ts (525 MB heap size)
 PASS  test/app14.e2e-spec.ts (533 MB heap size)
 PASS  test/app31.e2e-spec.ts (541 MB heap size)
 PASS  test/app8.e2e-spec.ts (549 MB heap size)
 PASS  test/app24.e2e-spec.ts (557 MB heap size)

Test without jest

yarn start
  • you can play with the iterations in main.ts

Typical output

{ rss: '39 MB', heapTotal: '18 MB', heapUsed: '8 MB' }
{ rss: '115 MB', heapTotal: '78 MB', heapUsed: '44 MB' }

nestjs-perf-test's People

Contributors

greenreign avatar

Watchers

 avatar  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.