Skip to content

Commit

Permalink
No tjson arrays yet
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Oct 16, 2022
1 parent 1d84cac commit ff341bb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,14 @@ tasks:
-coverprofile=integration-mongodb.txt . -target-port=37017 -compat-port=0
bench-short:
desc: "Benchmark for about 30 seconds (with default BENCHTIME)"
desc: "Benchmark for about 25 seconds (with default BENCHTIME)"
cmds:
- go test -list='Benchmark.*' ./...
- echo 'Running six functions for {{.BENCHTIME}} each...'
- echo 'Running five functions for {{.BENCHTIME}} each...'
- go test -bench=BenchmarkArray -benchtime={{.BENCHTIME}} ./internal/bson/ | tee -a new.txt
- go test -bench=BenchmarkDocument -benchtime={{.BENCHTIME}} ./internal/bson/ | tee -a new.txt
- go test -bench=BenchmarkArray -benchtime={{.BENCHTIME}} ./internal/handlers/pg/pjson/ | tee -a new.txt
- go test -bench=BenchmarkDocument -benchtime={{.BENCHTIME}} ./internal/handlers/pg/pjson/ | tee -a new.txt
- go test -bench=BenchmarkArray -benchtime={{.BENCHTIME}} ./internal/tjson/ | tee -a new.txt
- go test -bench=BenchmarkDocument -benchtime={{.BENCHTIME}} ./internal/tjson/ | tee -a new.txt
- bin/benchstat{{exeExt}} old.txt new.txt

Expand All @@ -196,15 +195,14 @@ tasks:
# Those commands should still run tests (i.e., should not have -run=XXX flags)
# to fill seed corpus for fuzz tests that use WriteSeedCorpusFile (e.g., FuzzHandler).
fuzz:
desc: "Fuzz for about 2,5 minutes (with default FUZZTIME)"
desc: "Fuzz for about 2 minutes (with default FUZZTIME)"
cmds:
- go test -list='Fuzz.*' ./...
- echo 'Running nine functions for {{.FUZZTIME}} each...'
- echo 'Running eight functions for {{.FUZZTIME}} each...'
- go test -fuzz=FuzzArray -fuzztime={{.FUZZTIME}} ./internal/bson/
- go test -fuzz=FuzzDocument -fuzztime={{.FUZZTIME}} ./internal/bson/
- go test -fuzz=FuzzArray -fuzztime={{.FUZZTIME}} ./internal/handlers/pg/pjson/
- go test -fuzz=FuzzDocument -fuzztime={{.FUZZTIME}} ./internal/handlers/pg/pjson/
- go test -fuzz=FuzzArray -fuzztime={{.FUZZTIME}} ./internal/tjson/
- go test -fuzz=FuzzDocument -fuzztime={{.FUZZTIME}} ./internal/tjson/
- go test -fuzz=FuzzMsg -fuzztime={{.FUZZTIME}} ./internal/wire/
- go test -fuzz=FuzzQuery -fuzztime={{.FUZZTIME}} ./internal/wire/
Expand Down

0 comments on commit ff341bb

Please sign in to comment.