Skip to content

Commit

Permalink
chore: Run stdlib tests in parallel to make gnovm tests run faster (#…
Browse files Browse the repository at this point in the history
…2864)

Check #2826 for more context.

---------

Signed-off-by: Antonio Navarro <antnavper@gmail.com>
  • Loading branch information
ajnavarro authored Oct 18, 2024
1 parent 5ef7cbf commit e587167
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gnovm/tests/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import (
)

func TestStdlibs(t *testing.T) {
t.Parallel()

// NOTE: this test only works using _test.gno files;
// filetests are not meant to be used for testing standard libraries.
// The examples directory is tested directly using `gno test`u
Expand Down Expand Up @@ -51,6 +53,8 @@ func TestStdlibs(t *testing.T) {
for _, pkgPath := range pkgPaths {
testDir := testDirs[pkgPath]
t.Run(pkgPath, func(t *testing.T) {
pkgPath := pkgPath
t.Parallel()
runPackageTest(t, testDir, pkgPath)
})
}
Expand Down

1 comment on commit e587167

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Go Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: e587167 Previous: 05cd4f5 Ratio
BenchmarkBinary/EmptyStruct:encode 477.8 ns/op 96 B/op 2 allocs/op 287.4 ns/op 96 B/op 2 allocs/op 1.66
BenchmarkBinary/EmptyStruct:encode - ns/op 477.8 ns/op 287.4 ns/op 1.66
BenchmarkBinary/EmptyStruct:decode 292.5 ns/op 0 B/op 0 allocs/op 140.3 ns/op 0 B/op 0 allocs/op 2.08
BenchmarkBinary/EmptyStruct:decode - ns/op 292.5 ns/op 140.3 ns/op 2.08
BenchmarkBinary/ShortArraysStruct:encode 797.7 ns/op 192 B/op 4 allocs/op 616.1 ns/op 192 B/op 4 allocs/op 1.29
BenchmarkBinary/ShortArraysStruct:encode - ns/op 797.7 ns/op 616.1 ns/op 1.29
BenchmarkBinary/ShortArraysStruct:decode 370.7 ns/op 0 B/op 0 allocs/op 230.5 ns/op 0 B/op 0 allocs/op 1.61
BenchmarkBinary/ShortArraysStruct:decode - ns/op 370.7 ns/op 230.5 ns/op 1.61
BenchmarkDetaching 109.6 ns/op 0 B/op 0 allocs/op 75.55 ns/op 0 B/op 0 allocs/op 1.45
BenchmarkDetaching - ns/op 109.6 ns/op 75.55 ns/op 1.45
BenchmarkBcryptGenerateFromPassword/benchmark-security-param 63781273 ns/op 5130 B/op 9 allocs/op 31923095 ns/op 5125 B/op 9 allocs/op 2.00
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op 63781273 ns/op 31923095 ns/op 2.00
BenchmarkBcryptGenerateFromPassword/benchmark-security-param 127559054 ns/op 5139 B/op 9 allocs/op 31923095 ns/op 5125 B/op 9 allocs/op 4.00
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op 127559054 ns/op 31923095 ns/op 4.00
BenchmarkBcryptGenerateFromPassword/benchmark-security-param 255064718 ns/op 5158 B/op 9 allocs/op 31923095 ns/op 5125 B/op 9 allocs/op 7.99
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op 255064718 ns/op 31923095 ns/op 7.99
BenchmarkBcryptGenerateFromPassword/benchmark-security-param 509884334 ns/op 5196 B/op 10 allocs/op 31923095 ns/op 5125 B/op 9 allocs/op 15.97
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op 509884334 ns/op 31923095 ns/op 15.97
BenchmarkBcryptGenerateFromPassword/benchmark-security-param 1019664553 ns/op 5736 B/op 15 allocs/op 31923095 ns/op 5125 B/op 9 allocs/op 31.94
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op 1019664553 ns/op 31923095 ns/op 31.94
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - allocs/op 15 allocs/op 9 allocs/op 1.67
BenchmarkBcryptGenerateFromPassword/benchmark-security-param 2039189653 ns/op 5528 B/op 13 allocs/op 31923095 ns/op 5125 B/op 9 allocs/op 63.88
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op 2039189653 ns/op 31923095 ns/op 63.88
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - allocs/op 13 allocs/op 9 allocs/op 1.44
BenchmarkSigning 84312 ns/op 1856 B/op 36 allocs/op 25708 ns/op 64 B/op 1 allocs/op 3.28
BenchmarkSigning - ns/op 84312 ns/op 25708 ns/op 3.28
BenchmarkSigning - B/op 1856 B/op 64 B/op 29
BenchmarkSigning - allocs/op 36 allocs/op 1 allocs/op 36
BenchmarkSigning 84245 ns/op 1856 B/op 36 allocs/op 25708 ns/op 64 B/op 1 allocs/op 3.28
BenchmarkSigning - ns/op 84245 ns/op 25708 ns/op 3.28
BenchmarkSigning - B/op 1856 B/op 64 B/op 29
BenchmarkSigning - allocs/op 36 allocs/op 1 allocs/op 36
BenchmarkVerification 162292 ns/op 864 B/op 19 allocs/op 61348 ns/op 0 B/op 0 allocs/op 2.65
BenchmarkVerification - ns/op 162292 ns/op 61348 ns/op 2.65
BenchmarkVerification - B/op 864 B/op 0 B/op +∞
BenchmarkVerification - allocs/op 19 allocs/op 0 allocs/op +∞
BenchmarkVerification 170782 ns/op 864 B/op 19 allocs/op 61348 ns/op 0 B/op 0 allocs/op 2.78
BenchmarkVerification - ns/op 170782 ns/op 61348 ns/op 2.78
BenchmarkVerification - B/op 864 B/op 0 B/op +∞
BenchmarkVerification - allocs/op 19 allocs/op 0 allocs/op +∞
BenchmarkRandomBytes/random 68.48 ns/op 16 B/op 1 allocs/op 32.72 ns/op 4 B/op 1 allocs/op 2.09
BenchmarkRandomBytes/random - ns/op 68.48 ns/op 32.72 ns/op 2.09
BenchmarkRandomBytes/random - B/op 16 B/op 4 B/op 4
BenchmarkRandomBytes/random 106.6 ns/op 32 B/op 1 allocs/op 32.72 ns/op 4 B/op 1 allocs/op 3.26
BenchmarkRandomBytes/random - ns/op 106.6 ns/op 32.72 ns/op 3.26
BenchmarkRandomBytes/random - B/op 32 B/op 4 B/op 8
BenchmarkRandomBytes/random 269.1 ns/op 112 B/op 1 allocs/op 32.72 ns/op 4 B/op 1 allocs/op 8.22
BenchmarkRandomBytes/random - ns/op 269.1 ns/op 32.72 ns/op 8.22
BenchmarkRandomBytes/random - B/op 112 B/op 4 B/op 28
BenchmarkRandomBytes/random 2327 ns/op 1024 B/op 1 allocs/op 32.72 ns/op 4 B/op 1 allocs/op 71.12
BenchmarkRandomBytes/random - ns/op 2327 ns/op 32.72 ns/op 71.12
BenchmarkRandomBytes/random - B/op 1024 B/op 4 B/op 256
BenchmarkSmall/boltdb-1000-100-16-40/update 1505430 ns/op 45649 B/op 403 allocs/op 933228 ns/op 37614 B/op 371 allocs/op 1.61
BenchmarkSmall/boltdb-1000-100-16-40/update - ns/op 1505430 ns/op 933228 ns/op 1.61
BenchmarkSmall/boltdb-1000-100-16-40/update - B/op 45649 B/op 37614 B/op 1.21
BenchmarkSmall/memdb-1000-100-16-40/block 16163630 ns/op 9204851 B/op 167863 allocs/op 12664953 ns/op 6574238 B/op 116631 allocs/op 1.28
BenchmarkSmall/memdb-1000-100-16-40/block - ns/op 16163630 ns/op 12664953 ns/op 1.28
BenchmarkSmall/memdb-1000-100-16-40/block - B/op 9204851 B/op 6574238 B/op 1.40
BenchmarkSmall/memdb-1000-100-16-40/block - allocs/op 167863 allocs/op 116631 allocs/op 1.44
BenchmarkMedium/boltdb-100000-100-16-40/update 7022249 ns/op 139501 B/op 1087 allocs/op 5147863 ns/op 98348 B/op 831 allocs/op 1.36
BenchmarkMedium/boltdb-100000-100-16-40/update - ns/op 7022249 ns/op 5147863 ns/op 1.36
BenchmarkMedium/boltdb-100000-100-16-40/update - B/op 139501 B/op 98348 B/op 1.42
BenchmarkMedium/boltdb-100000-100-16-40/update - allocs/op 1087 allocs/op 831 allocs/op 1.31
BenchmarkMedium/memdb-100000-100-16-40/update - B/op 380620 B/op 266543 B/op 1.43
BenchmarkMedium/memdb-100000-100-16-40/update - allocs/op 7541 allocs/op 5154 allocs/op 1.46
BenchmarkLevelDBBatchSizes/goleveldb-100000-400-16-40/update - B/op 48200 B/op 38565 B/op 1.25
BenchmarkLevelDBBatchSizes/goleveldb-100000-400-16-40/update - allocs/op 583 allocs/op 444 allocs/op 1.31
BenchmarkLevelDBBatchSizes/goleveldb-100000-2000-16-40/update - allocs/op 414 allocs/op 340 allocs/op 1.22
BenchmarkLevelDBBatchSizes/goleveldb-100000-2000-16-40/block - B/op 96649241 B/op 79046514 B/op 1.22
BenchmarkHash/ripemd160 2838 ns/op 25 B/op 1 allocs/op 701.2 ns/op 25 B/op 1 allocs/op 4.05
BenchmarkHash/ripemd160 - ns/op 2838 ns/op 701.2 ns/op 4.05
BenchmarkHash/sha2-256 523.1 ns/op 33 B/op 1 allocs/op 169.6 ns/op 33 B/op 1 allocs/op 3.08
BenchmarkHash/sha2-256 - ns/op 523.1 ns/op 169.6 ns/op 3.08
BenchmarkHash/sha3-256 1838 ns/op 33 B/op 1 allocs/op 715.4 ns/op 33 B/op 1 allocs/op 2.57
BenchmarkHash/sha3-256 - ns/op 1838 ns/op 715.4 ns/op 2.57
BenchmarkWriteSecretConnection 6484 ns/op 0 B/op 0 allocs/op 4012 ns/op 0 B/op 0 allocs/op 1.62
BenchmarkWriteSecretConnection - ns/op 6484 ns/op 4012 ns/op 1.62
BenchmarkReadSecretConnection 3755 ns/op 0 B/op 0 allocs/op 2354 ns/op 0 B/op 0 allocs/op 1.60
BenchmarkReadSecretConnection - ns/op 3755 ns/op 2354 ns/op 1.60
BenchmarkCacheStoreIterator100000 - allocs/op 27546 allocs/op 22732 allocs/op 1.21

This comment was automatically generated by workflow using github-action-benchmark.

CC: @ajnavarro @thehowl @zivkovicmilos

Please sign in to comment.