Skip to content

[BUG] The test below may hang indefinitely #58

@llxisdsh

Description

@llxisdsh
func BenchmarkDelete_alphadose_haxmap(b *testing.B) {
	b.ReportAllocs()
	var m = haxmap.New[int, int]()
	for i := 0; i < 1000000; i++ {
		m.Set(i, i)
	}
	runtime.GC()

	b.ResetTimer()
	b.RunParallel(func(pb *testing.PB) {
		i := 0
		for pb.Next() {
			m.Del(i)
			i++
			if i >= 1000000{
				i = 0
			}
		}
	})
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions