fast-replace/go-fast-replace/README.md

1.1 KiB
Raw Blame History

Go Fast Replace

An implementation in Go.

To build

make build

To run

make run

To test

make test

Conclusions

Replace

Current implementations:

Results

  • bm varies a lot, but is never over 460µs.
  • cw is a lot slower, at around 3.5ms, but it can search for multiple patterns at once.
$ make run
./bin/corpus
Creating corpus...
./bin/pairs
Creating pairs...
./bin/replace

bm: 273.621µs

cw: 2.939254ms

Todo: