Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,37 +63,6 @@ linters:
# (access to unexported helpers without re-exporting). Documented choice.
- testpackage

exclusions:
# Path-based exclusions for rules that produce false-positive noise on test
# code without corresponding signal. Production code remains under the full
# rule set; only `_test.go` files are exempted from these specific rules.
#
# Justification per rule:
# - funlen / cyclop / gocognit: tests legitimately have long bodies
# (setup -> many actions -> many assertions); splitting into helpers
# adds noise without surfacing real defects.
# - dupl: table-driven test bodies repeat by design.
# - gocritic: subjective stylistic suggestions, low signal on tests.
# - goconst: short fixture strings ("v1", "key1") naturally repeat in
# tests; constants would obscure intent.
# - noinlineerr: stylistic preference, not a defect.
# - revive function-length / cognitive-complexity / cyclomatic: same
# reasons as funlen / cyclop / gocognit (revive's variants).
rules:
- path: _test\.go$
linters:
- funlen
- cyclop
- gocognit
- dupl
- gocritic
- goconst
- noinlineerr
- path: _test\.go$
linters:
- revive
text: '^(function-length|cognitive-complexity|cyclomatic):'

settings:
cyclop:
# The maximal code complexity to report.
Expand Down
26 changes: 26 additions & 0 deletions bench-step3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
goos: darwin
goarch: arm64
pkg: github.com/hyp3rd/hypercache/pkg/cache/v2
cpu: Apple M4 Pro
BenchmarkConcurrentMap_Count-14 122877582 9.726 ns/op 0 B/op 0 allocs/op
BenchmarkConcurrentMap_Count-14 122084272 9.828 ns/op 0 B/op 0 allocs/op
BenchmarkConcurrentMap_Count-14 123835690 9.683 ns/op 0 B/op 0 allocs/op
BenchmarkConcurrentMap_Count-14 122782857 9.763 ns/op 0 B/op 0 allocs/op
BenchmarkConcurrentMap_Count-14 124295282 9.649 ns/op 0 B/op 0 allocs/op
BenchmarkConcurrentMap_CountParallel-14 79226004 13.44 ns/op 9 B/op 0 allocs/op
BenchmarkConcurrentMap_CountParallel-14 82377501 13.32 ns/op 9 B/op 0 allocs/op
BenchmarkConcurrentMap_CountParallel-14 93374600 12.83 ns/op 9 B/op 0 allocs/op
BenchmarkConcurrentMap_CountParallel-14 74157042 14.11 ns/op 9 B/op 0 allocs/op
BenchmarkConcurrentMap_CountParallel-14 89445556 13.49 ns/op 8 B/op 0 allocs/op
BenchmarkConcurrentMap_GetShard-14 100000000 10.08 ns/op 0 B/op 0 allocs/op
BenchmarkConcurrentMap_GetShard-14 120268629 10.01 ns/op 0 B/op 0 allocs/op
BenchmarkConcurrentMap_GetShard-14 100000000 10.22 ns/op 0 B/op 0 allocs/op
BenchmarkConcurrentMap_GetShard-14 100000000 10.03 ns/op 0 B/op 0 allocs/op
BenchmarkConcurrentMap_GetShard-14 100000000 10.07 ns/op 0 B/op 0 allocs/op
BenchmarkConcurrentMap_All-14 46454 26087 ns/op 0 B/op 0 allocs/op
BenchmarkConcurrentMap_All-14 44976 26633 ns/op 0 B/op 0 allocs/op
BenchmarkConcurrentMap_All-14 45357 26457 ns/op 0 B/op 0 allocs/op
BenchmarkConcurrentMap_All-14 41589 27827 ns/op 0 B/op 0 allocs/op
BenchmarkConcurrentMap_All-14 45512 26454 ns/op 0 B/op 0 allocs/op
PASS
ok github.com/hyp3rd/hypercache/pkg/cache/v2 23.302s
9 changes: 9 additions & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ ignorePaths:
- "*.http"
- compose.*.yaml
- docs/mkdocs.yml
- bench-*.txt
- lint-*.txt
- race-*.log
dictionaryDefinitions: []
dictionaries: []
words:
- acks
- autosync
- backpressure
- benchmarkdist
- benchmem
Expand Down Expand Up @@ -64,6 +68,7 @@ words:
- excludeonly
- exhaustruct
- Fanout
- fatals
- fctx
- ferr
- FLUSHALL
Expand All @@ -80,6 +85,8 @@ words:
- gocache
- goccy
- gochecknoglobals
- goconst
- histogramcollector
- gofiber
- GOFILES
- gofumpt
Expand Down Expand Up @@ -114,6 +121,7 @@ words:
- Merkle
- mfinal
- Mgmt
- microbenchmark
- mkdocs
- mrand
- mset
Expand Down Expand Up @@ -151,6 +159,7 @@ words:
- stretchr
- strfnv
- strs
- subtest
- subtests
- sval
- thelper
Expand Down
Loading
Loading