Avatar for the netresearch user
netresearch
go-cron
BlogDocsChangelog

test: add tests for PR #336 and fix pre-existing lint/flaky issues

#341Merged
Comparing
test/pr336-deep-copy-and-race-tests
(
41e1bc6
) with
main
(
63a77ce
)
CodSpeed Performance Gauge
-75%
Improvement
5
Regression
4
Untouched
16

Benchmarks

25 total
without_capacity
option_capacity_test.go::BenchmarkWithCapacity_MapOperations::size_1000
CodSpeed Performance Gauge
-75%
2.3 ms9.2 ms
with_capacity
option_capacity_test.go::BenchmarkWithCapacity_MapOperations::size_500
CodSpeed Performance Gauge
-24%
1.1 ms1.4 ms
with_capacity
option_capacity_test.go::BenchmarkWithCapacity_MapOperations::size_1000
CodSpeed Performance Gauge
-24%
3.2 ms4.2 ms
10_jobs
benchmark_test.go::BenchmarkCronWithManyJobs
CodSpeed Performance Gauge
-15%
2.7 µs3.1 µs
with_capacity
option_capacity_test.go::BenchmarkWithCapacity_BulkAdd
CodSpeed Performance Gauge
+18%
1.8 ms1.5 ms
without_capacity
option_capacity_test.go::BenchmarkWithCapacity_MapOperations::size_100
CodSpeed Performance Gauge
+15%
229.3 µs200.3 µs
1000_jobs
benchmark_test.go::BenchmarkCronWithManyJobs
CodSpeed Performance Gauge
+13%
3.9 ms3.5 ms
without_capacity
option_capacity_test.go::BenchmarkWithCapacity_BulkAdd
CodSpeed Performance Gauge
+12%
2 ms1.7 ms
without_capacity
option_capacity_test.go::BenchmarkWithCapacity_MapOperations::size_500
CodSpeed Performance Gauge
+11%
1.1 ms1 ms
BenchmarkParseStandard
benchmark_test.go
CodSpeed Performance Gauge
+5%
3.5 µs3.3 µs
BenchmarkAddJob
benchmark_test.go
CodSpeed Performance Gauge
+5%
6.1 µs5.8 µs
BenchmarkParseDescriptor
benchmark_test.go
CodSpeed Performance Gauge
0%
238 ns238 ns
BenchmarkChainWrappers
benchmark_test.go
CodSpeed Performance Gauge
0%
28 ns28 ns
BenchmarkNextComplex
benchmark_test.go
CodSpeed Performance Gauge
0%
868 ns868 ns
BenchmarkNextWithTimezone
benchmark_test.go
CodSpeed Performance Gauge
0%
1.2 µs1.2 µs
BenchmarkNext
benchmark_test.go
CodSpeed Performance Gauge
0%
2.6 µs2.6 µs
BenchmarkRemoveAtWithIndex
heap_test.go
CodSpeed Performance Gauge
0%
960 ns961 ns
BenchmarkHeapPopPush
heap_test.go
CodSpeed Performance Gauge
0%
532 ns533 ns
100_jobs
benchmark_test.go::BenchmarkCronWithManyJobs
CodSpeed Performance Gauge
0%
16.5 µs16.6 µs
with_capacity
option_capacity_test.go::BenchmarkWithCapacity_MapOperations::size_100
CodSpeed Performance Gauge
-1%
210.6 µs212.2 µs
BenchmarkObservabilityHooks_NilOverhead
observability_test.go
CodSpeed Performance Gauge
-1%
212 ns214 ns
BenchmarkObservabilityHooks_Overhead
observability_test.go
CodSpeed Performance Gauge
-1%
2.3 µs2.4 µs
BenchmarkHeapUpdate
heap_test.go
CodSpeed Performance Gauge
-2%
477 ns486 ns
BenchmarkHeapPush
heap_test.go
CodSpeed Performance Gauge
-3%
278.5 µs288.1 µs
BenchmarkParseWithTimezone
benchmark_test.go
CodSpeed Performance Gauge
-3%
35.5 µs36.7 µs

Commits

Click on a commit to change the comparison range
Base
main
63a77ce
-74.74%
fix: suppress gosec G118 false positives and stabilize flaky tests
41e1bc6
21 days ago
by CybotTM
© 2026 CodSpeed Technology
Home Terms Privacy Docs