diff --git a/diffieHellman/dhkx_test.go b/diffieHellman/dhkx_test.go
index c4ddc2591f7f72841facd3037c1e318a92ef5ebe..42c5f3f03eac51c53a5d37e7f825c772185845e4 100644
--- a/diffieHellman/dhkx_test.go
+++ b/diffieHellman/dhkx_test.go
@@ -261,7 +261,8 @@ func BenchmarkCreateDHSessionKey(b *testing.B) {
 	privKey, _ := CreateDHKeyPair(grp)
 
 	b.ResetTimer()
+	for n := 0; n < b.N; n++ {
+		CreateDHSessionKey(pubKey, privKey, grp)
 
-	CreateDHSessionKey(pubKey, privKey, grp)
-
+	}
 }