Avatar for the toss user
toss
es-toolkit
BlogDocsChangelog

feat(countBy): Add countBy function

#117Merged
Comparing
l2hyunwoo:feature/#88
(
44f33b4
) with
main
(
e8c1e25
)
CodSpeed Performance Gauge
-89%
Improvement
3
Regression
7
Untouched
98

Benchmarks

108 total
lodash/isNil
benchmarks/isNil.bench.ts::isNil
CodSpeed Performance Gauge
-89%
35.3 µs319.7 µs
lodash/difference
benchmarks/difference.bench.ts::difference
CodSpeed Performance Gauge
-83%
56.7 µs337.1 µs
lodash/intersectionWith
benchmarks/intersectionWith.bench.ts::intersectionWith
CodSpeed Performance Gauge
-65%
92 µs263.2 µs
lodash/unionWith
benchmarks/unionWith.bench.ts::unionWith
CodSpeed Performance Gauge
-65%
84.8 µs239.8 µs
lodash/xor
benchmarks/xor.bench.ts::xor
CodSpeed Performance Gauge
-36%
255.6 µs397.5 µs
lodash/range
benchmarks/range.bench.ts::range
CodSpeed Performance Gauge
-25%
33.4 µs44.2 µs
es-toolkit/range
benchmarks/range.bench.ts::range
CodSpeed Performance Gauge
-19%
39.2 µs48.3 µs
lodash/unionBy
benchmarks/unionBy.bench.ts::unionBy
CodSpeed Performance Gauge
×3.1
232.7 µs75.4 µs
es-toolkit/countBy
benchmarks/countBy.bench.ts::countBy
CodSpeed Performance Gauge
+26%
70.2 µs55.5 µs
es-toolkit/uniqWith
benchmarks/uniqWith.bench.ts::uniqWith, small arrays
CodSpeed Performance Gauge
+16%
44.4 µs38.4 µs
lodash/uniqWith
benchmarks/uniqWith.bench.ts::uniqWith, small arrays
CodSpeed Performance Gauge
+4%
37.7 µs36.4 µs
es-toolkit/clamp
benchmarks/clamp.bench.ts::clamp
CodSpeed Performance Gauge
+1%
20.8 µs20.6 µs
es-toolkit/takeRight
benchmarks/takeRight.bench.ts::takeRight
CodSpeed Performance Gauge
+1%
19.8 µs19.6 µs
lodash/mean
benchmarks/mean.bench.ts::mean
CodSpeed Performance Gauge
+1%
23.5 µs23.2 µs
es-toolkit/uniq
benchmarks/uniq.bench.ts::uniq
CodSpeed Performance Gauge
+1%
23.3 µs23.1 µs
es-toolkit/round
benchmarks/round.bench.ts::round
CodSpeed Performance Gauge
+1%
21.5 µs21.4 µs
es-toolkit/takeRightWhile
benchmarks/takeRightWhile.bench.ts::takeRightWhile
CodSpeed Performance Gauge
+1%
22.7 µs22.5 µs
lodash/takeRight
benchmarks/takeRight.bench.ts::takeRight
CodSpeed Performance Gauge
+1%
26.1 µs26 µs
lodash/uniq
benchmarks/uniq.bench.ts::uniq
CodSpeed Performance Gauge
+1%
28.4 µs28.3 µs
es-toolkit/minBy
benchmarks/minBy.bench.ts::minBy
CodSpeed Performance Gauge
0%
36.6 µs36.4 µs
lodash/sample
benchmarks/sample.bench.ts::sample
CodSpeed Performance Gauge
0%
23 µs22.9 µs
es-toolkit/sum
benchmarks/sum.bench.ts::sum
CodSpeed Performance Gauge
0%
21.6 µs21.5 µs
es-toolkit/partition
benchmarks/partition.bench.ts::partition
CodSpeed Performance Gauge
0%
35.2 µs35.1 µs
es-toolkit/union
benchmarks/union.bench.ts::union
CodSpeed Performance Gauge
0%
32.5 µs32.4 µs
es-toolkit/once
benchmarks/once.bench.ts::once
CodSpeed Performance Gauge
0%
17.3 µs17.2 µs

Commits

Click on a commit to change the comparison range
Base
l2hyunwoo:feature/#88
e8c1e25
-24.58%
[feature/#88] Add countBy references
cc3f650
2 years ago
by l2hyunwoo
-43.05%
Update docs/ko/reference/array/countBy.md
e8c1e25
2 years ago
by raon0211
-21.34%
Apply suggestions from code review
44f33b4
2 years ago
by raon0211
© 2026 CodSpeed Technology
Home Terms Privacy Docs