Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

This branch is 182 commits behind chriso:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README.md
hashmap.c
hashmap.h
word_count.c
word_count_basic.js
word_count_nodeio.js

README.md

Nothing to see here yet..

To compile word_count.c

$ gcc -ansi -O3 word_count.c hashmap.c -o word_count

To count words using C (Note: input.txt needs to be a decent size - I use 1GB of lorem)

$ time ./word_count < input.txt

To count words using node.io and 1 process

$ time node.io word_count_nodeio < input.txt

To count words using node.io and 4 processes

$ time node.io -f 4 word_count_nodeio < input.txt

To count words using a basic .js file

$ time node word_count_basic.js < input.txt
Something went wrong with that request. Please try again.