Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestLRUConcurrency (0.09 sec)

  1. tests/lru_test.go

    		}
    		if lc.Len() > 20 {
    			t.Fatalf("length should be less than 20")
    		}
    	}
    
    	if lc.Len() != 10 {
    		t.Fatalf("length differs from expected")
    	}
    }
    
    func TestLRUConcurrency(t *testing.T) {
    	lc := lru.NewLRU[string, string](0, nil, 0)
    	wg := sync.WaitGroup{}
    	wg.Add(1000)
    	for i := 0; i < 1000; i++ {
    		go func(i int) {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top