funshion / winston-performance-test

Winston(Node.js框架)性能测试

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

winston-performance-test

Winston (A multi-transport async logging library for node.js). https://github.com/flatiron/winston

winston 性能测试

Preparation

npm install winston
npm install cofee-script

coffee winston-performance-test.coffee

Results

server: 虚拟机 512M内存,1颗CPU(1核)

连续写入 100,000条记录 ,每条记录554Bytes
winston: 阻塞耗时 34483697ms (JSON), 25392901ms (text)
fs stream:阻塞耗时 528570ms (text)
winston + fs stream方式:阻塞耗时 2901
3013ms (text)


陈建斌

About

Winston(Node.js框架)性能测试


Languages

Language:CoffeeScript 100.0%