Skip to content
This repository was archived by the owner on Dec 1, 2022. It is now read-only.

jgrillo/wordcountrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wordcountrs

It counts your words.

POST /words

{
    "word" : ["word", "word", "word"]
}

Response:

{
    "counts" {
        "word": 3
    }
}

To make it scoot use the lua scripts with wrk:

$ wrk -c 8 -t 8 -d 60s --latency --timeout 60s -s lulz.lua http://localhost:8000/words

or

$ wrk -c 8 -t 8 -d 60s --latency --timeout 60s -s perf_test.lua http://localhost:8000/words

To make a flamegraph use perf:

$ perf record -a --call-graph dwarf -- target/release/wordcountrs
$ perf script -i perf.data | stackcollapse-perf.pl | flamegraph.pl > flame.svg

About

it counts your words fast

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published