Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jakewins/neobench
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewins committed Aug 23, 2021
2 parents 20efd4d + e068c02 commit 7f90d53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ You can download download binaries the "assets" section in the latest release [h

### Option 2: Run via docker

Easier to use, but note that running against localhost won't work (easily).

docker run jjdh/neobench -h

## Usage
Expand Down
2 changes: 1 addition & 1 deletion pkg/neobench/builtin/tpcb_like.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ MERGE (t:Teller {tid: tellerId}) SET t.balance = 0
batchSize := int64(5000)
numBatches := numAccounts / batchSize
for batchNo := int64(0); batchNo <= numBatches; batchNo++ {
startAccount := max(existingAccountNum, batchSize*batchNo+1)
startAccount := max(existingAccountNum, batchSize*batchNo) + 1
endAccount := min(numAccounts, startAccount+batchSize) - 1
if endAccount <= startAccount {
continue
Expand Down

0 comments on commit 7f90d53

Please sign in to comment.