-
Notifications
You must be signed in to change notification settings - Fork 17
feat: add universal pairing accumulator #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| import ( | ||
| "errors" | ||
| "fmt" | ||
| "runtime" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
| "fmt" | ||
| "runtime" | ||
| "sync" | ||
| "unsafe" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
| } | ||
|
|
||
| if calcRoot { | ||
| rootStart := time.Now() |
Check warning
Code scanning / CodeQL
Calling the system time Warning test
| fmt.Printf("Applied %d entries in %s (%.2f K entries/s) across %d blocks (%.2f blocks/s). Root time: %s\n", | ||
| totalEntries, | ||
| applyDur, | ||
| float64(totalEntries)/applyDur.Seconds()/1000.0, |
Check notice
Code scanning / CodeQL
Floating point arithmetic Note test
| fmt.Printf("Applied %d entries in %s (%.2f K entries/s) across %d blocks (%.2f blocks/s). Root time: %s\n", | ||
| totalEntries, | ||
| applyDur, | ||
| float64(totalEntries)/applyDur.Seconds()/1000.0, |
Check notice
Code scanning / CodeQL
Floating point arithmetic Note test
| applyDur, | ||
| float64(totalEntries)/applyDur.Seconds()/1000.0, | ||
| blocks, | ||
| float64(blocks)/applyDur.Seconds(), |
Check notice
Code scanning / CodeQL
Floating point arithmetic Note test
| func generateSyntheticKVs(n int, keySize int, valueSize int, seed int64) []utils.KeyValuePair { | ||
| out := make([]utils.KeyValuePair, n) | ||
| // Use math/rand for speed; seed optionally deterministic | ||
| r := mrand.New(mrand.NewSource(time.Now().UnixNano())) |
Check warning
Code scanning / CodeQL
Calling the system time Warning test
914d004 to
6b2b948
Compare
2d1f555 to
caa2e66
Compare
Codecov Report❌ Patch coverage is ❌ Your patch check has failed because the patch coverage (57.83%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #100 +/- ##
==========================================
- Coverage 63.60% 57.23% -6.38%
==========================================
Files 28 59 +31
Lines 4047 7681 +3634
==========================================
+ Hits 2574 4396 +1822
- Misses 1173 2897 +1724
- Partials 300 388 +88
🚀 New features to boost your workflow:
|
c5b2f3f to
4281689
Compare
| func RandomShuffle(kvPairs []KeyValuePair) { | ||
| rand.Seed(time.Now().UnixNano()) | ||
| rand.Shuffle(len(kvPairs), func(i, j int) { | ||
| r := rand.New(rand.NewSource(time.Now().UnixNano())) |
Check warning
Code scanning / CodeQL
Calling the system time Warning
2499be1 to
6ad357c
Compare
6ad357c to
461f0a5
Compare
Describe your changes and provide context
Testing performed to validate your change