Skip to content

Commit 93752f4

Browse files
committed
Update memory estimation related triangle count tests
1 parent 89f11e6 commit 93752f4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

algo/src/test/java/org/neo4j/gds/triangle/IntersectingTriangleCountMemoryEstimateDefinitionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void memoryEstimation(long nodeCount) {
3939
GraphDimensions graphDimensions = ImmutableGraphDimensions.builder().nodeCount(nodeCount).build();
4040

4141
long hugeAtomicLongArray = 24 + nodeCount * 8 + 16;
42-
long expected = 64 + hugeAtomicLongArray;
42+
long expected = 80 + hugeAtomicLongArray;
4343

4444
MemoryEstimationAssert.assertThat(memoryEstimation)
4545
.memoryRange(graphDimensions, new Concurrency(1))
@@ -55,7 +55,7 @@ void memoryEstimationLargePages(long nodeCount, long sizeOfHugeArray) {
5555
GraphDimensions graphDimensions = ImmutableGraphDimensions.builder().nodeCount(nodeCount).build();
5656

5757
long hugeAtomicLongArray = 32 + sizeOfHugeArray;
58-
long expected = 64 + hugeAtomicLongArray;
58+
long expected = 80 + hugeAtomicLongArray;
5959

6060
MemoryEstimationAssert.assertThat(memoryEstimation)
6161
.memoryRange(graphDimensions, new Concurrency(1))

algo/src/test/java/org/neo4j/gds/triangle/LocalClusteringCoefficientMemoryEstimateDefinitionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void memoryEstimation(long nodeCount) {
3838

3939
long triangleCountEstimate = 48 + 24 + nodeCount * 8 + 16;
4040
long hugeDoubleArray = 16 + nodeCount * 8 + 16;
41-
long expected = 80 + hugeDoubleArray + triangleCountEstimate;
41+
long expected = 96 + hugeDoubleArray + triangleCountEstimate;
4242

4343
MemoryEstimationAssert.assertThat(memoryEstimation)
4444
.memoryRange(graphDimensions, new Concurrency(1))
@@ -70,7 +70,7 @@ void memoryEstimationLargePages(long nodeCount, long sizeOfHugeArray) {
7070

7171
long triangleCountEstimate = 48 + 32 + sizeOfHugeArray;
7272
long hugeDoubleArray = 24 + sizeOfHugeArray;
73-
long expected = 80 + hugeDoubleArray + triangleCountEstimate;
73+
long expected = 96 + hugeDoubleArray + triangleCountEstimate;
7474

7575
MemoryEstimationAssert.assertThat(memoryEstimation)
7676
.memoryRange(graphDimensions, new Concurrency(1))

doc/modules/ROOT/pages/algorithms/local-clustering-coefficient.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ YIELD nodeCount, relationshipCount, bytesMin, bytesMax, requiredMemory
281281
[opts="header"]
282282
|===
283283
| nodeCount | relationshipCount | bytesMin | bytesMax | requiredMemory
284-
| 6 | 16 | 296 | 296 | "296 Bytes"
284+
| 6 | 16 | 312 | 312 | "312 Bytes"
285285
|===
286286
--
287287

doc/modules/ROOT/pages/algorithms/triangle-count.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ YIELD nodeCount, relationshipCount, bytesMin, bytesMax, requiredMemory
313313
[opts="header"]
314314
|===
315315
| nodeCount | relationshipCount | bytesMin | bytesMax | requiredMemory
316-
| 6 | 16 | 152 | 152 | "152 Bytes"
316+
| 6 | 16 | 168 | 168 | "168 Bytes"
317317
|===
318318
--
319319

0 commit comments

Comments
 (0)