Skip to content

Commit

Permalink
Add more info about bench and adding new chars to README (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
matrixik authored Nov 8, 2021
1 parent e606663 commit efee641
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,20 @@ go get -u github.com/gosimple/unidecode
## Benchmark

```shell
go get golang.org/x/perf/cmd/...

go test -run=NONE -bench=. ./... > old.txt
go test -run=NONE -bench=. -benchmem -count=6 ./... > old.txt
# make changes
go test -run=NONE -bench=. ./... > new.txt
go test -run=NONE -bench=. -benchmem -count=6 ./... > new.txt

go install golang.org/x/perf/cmd/benchstat@latest

benchstat old.txt new.txt
```

## Add new characters

1. Edit `table.txt` file.
2. Rebuild `table.go` file:

```go
go run ./make_table.go
```

0 comments on commit efee641

Please sign in to comment.