Skip to content

faranalytics/streams-logger-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Benchmarking the Streams Logger

Introduction

This package provides a rough benchmark comparison between Streams, Pino, and Winston. The comparison may not take into account relevant optimizations offered by each package - this is a work in progress. Please see the implementations for details.

Materials

Methods

Hello, World!

Each logger is configured to log a message to the console and a file that roughly resembles 2024-07-10T02:31:33.797Z INFO: Hello, World!. Each logger is ran once on each iteration.

Procedure

  1. Start a child process.
  2. Start the timer.
  3. Configure the logger.
  4. Run the specified test hello_world.js.
  5. Log Hello, World! to the console and to a file 10000 times.
  6. Calculate the mean time and memory usage of each iteration.

Run the Test

npm start iteration=1e1 test=hello_world

Results

Discussion

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published