Skip to content

Commit

Permalink
updated Makefile to tidy dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
eze-kiel committed Apr 21, 2021
1 parent 25721ce commit 68b4b5a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ all: help

## Build:
digest: ## Build slowql-digest
$(GOCMD) mod tidy
GO111MODULE=on $(GOCMD) build -o $(BUILD_ROOT)digest ./cmd/slowql-digest/
@echo "${GREEN}[*]${RESET} digest successfully built in ${YELLOW}${BUILD_ROOT}digest${RESET}"

replayer: ## Build slowql-replayer
$(GOCMD) mod tidy
GO111MODULE=on $(GOCMD) build -o $(BUILD_ROOT)replayer ./cmd/slowql-replayer/
@echo "${GREEN}[*]${RESET} replayer successfully built in ${YELLOW}${BUILD_ROOT}replayer${RESET}"

clean: ## Clean all the files and binaries generated by the Makefile
$(GOCMD) mod tidy
rm -rf $(BUILD_ROOT)
rm -f ./profile.cov

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Running the example given in cmd/ without any `fmt.Printf` against a 292MB slow
parsed 278077 queries in 8.099622786s
```

which is approx. **34760 queries/second**.
which is approx. **34760 queries/second** (Intel i5-8250U (8) @ 3.400GHz).

## Associated tools

Expand All @@ -85,7 +85,6 @@ Not all kind of slow query logs have been tested yet:
- [X] MariaDB
- [ ] Percona-db
- [X] Percona-cluster (pxc)
- [ ] MongoDB
- [ ] PostgreSQL

### Internal
Expand Down
8 changes: 6 additions & 2 deletions cmd/slowql-replayer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ $ go install github.com/devops-works/slowql/cmd/slowql-replayer

```
$ git clone https://github.com/devops-works/slowql
$ cd slowql/cmd/slowql-replayer
$ make build
$ cd slowql/
$ make replayer
```

A binary called `replayer` will be created at the root of the repo, under `bin/`.

(`go` is required!)

### By downloading the pre-built binary

You can find the latest version in the [releases](https://github.com/devops-works/slowql/releases)
Expand Down

0 comments on commit 68b4b5a

Please sign in to comment.