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.
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
.
- Start a child process.
- Start the timer.
- Configure the logger.
- Run the specified test
hello_world.js
. - Log Hello, World! to the console and to a file 10000 times.
- Calculate the mean time and memory usage of each iteration.
npm start iteration=1e1 test=hello_world