Skip to content

Latest commit

 

History

History

stream_mem_stress_test

Streams - Memory Stress Test and Memory Profiling

This directory contains test code for running a memory profiler when using the encryptStream and decryptUnsignedMessageStream. This directory contains everything you need to run a memory profiler on these two operations.

Requirements

  • Node >= 12
  • Chrome Browser

How to run the application and memory profiler

  1. For easier debugging open two chrome windows
  2. One where you can look at the profiler
  3. One where you can navigate through the application paths.
  4. On Chrome, navigate to: chrome://inspect/#devices
  5. Make sure you are in the stream_mem_stress_test directory.
  6. Start debugger and server by running npm run start
  7. On the devices page click on inspect for the remote target that just appeared
  8. Navigate to the Memory tab. You will have three options: 1. Heap snapshot
    • Useful to focus on a specific action during runtime. 1. Allocation instrumentation on timeline
    • Works better for our stress tests since we can see memory allocation and garbage collection during runtime 1. Allocation Sampling (not useful for our test)
  9. Navigate to any of the provided paths and watch memory allocation and garbage collection in real time 🍿