Code Monkey home page Code Monkey logo

bench23's Introduction

bench-23

A tiny program to benchmark concurrent file I/O performance in Go and Node.js

Results

Tested on CentOS 7, Xeon E3 4 Cores 8 Threads.

Go 1.10.2 Node.js v10.3.0
10000 files (Write, Read) Write: 311.389699ms Read: 313.480085ms Write: 453.411ms Read: 871.045ms
5000 files (Write, Read and parse JSON) Write: 154.625183ms Read: 3.489775076s Write: 202.956ms Read: 3967.285ms

Run benchmarks

Go:

# build the program
GOOS=linux GOARCH=amd64 go build -o ./bin/bench23

# 10000 files
./bench23 10000

# 5000 files + parse json
./bench23 5000 --parse-json

Node.js (assume yarn already installed):

# 10000 files
NODE_ENV=production yarn start 10000

# 5000 files + parse json
NODE_ENV=production yarn start 5000 --parse-json

bench23's People

Contributors

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