Skip to content

Instantly share code, notes, and snippets.

View rngadam's full-sized avatar
💭
coderbunker.ca

Ricky Ng-Adam rngadam

💭
coderbunker.ca
View GitHub Profile
@rngadam
rngadam / mermaid.md
Last active November 4, 2024 13:54
Mermaid in Github Markdown
@rngadam
rngadam / codecov.md
Created September 4, 2024 17:52
codecov
@rngadam
rngadam / gist:3be78ce66a9afc0326de08f4f36ccc15
Last active September 3, 2024 13:08
measuring coverage for anoncreds-rs
$ sudo apt install rustfilt llvm
$ RUSTFLAGS="-C instrument-coverage" cargo test --tests
$ llvm-profdata merge -sparse default_*.profraw -o json5format.profdata
$ llvm-cov report --use-color --ignore-filename-regex='/.cargo/registry' --instr-profile=json5format.profdata --object target/debug/deps/anoncreds-8fe56f9dd9e403dd
Filename Regions Missed Regions Cover Functions Missed Functions Executed Lines Missed Lines Cover Branches Missed Branches Cover
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/core/src/panic.rs 1
aries-cloudagent-python$ find ./aries_cloudagent/ -name "*.py" -not -name "*test*" -exec grep -H -E "^[[:space:]]*print" {} \;
./aries_cloudagent/admin/server.py: print("\n=================")
./aries_cloudagent/transport/v2_pack_format.py: print("HIT CRTYPTO SER ERR EXCEPT BLOC")
./aries_cloudagent/anoncreds/default/legacy_indy/registry.py: print("Successfully registered LegacyIndyRegistry")
./aries_cloudagent/anoncreds/default/did_indy/registry.py: print("Successfully registered DIDIndyRegistry")
./aries_cloudagent/anoncreds/default/did_web/registry.py: print("Successfully registered DIDWebRegistry")
./aries_cloudagent/wallet/crypto.py: print(err)
./aries_cloudagent/vc/vc_di/prove.py: print("... skipping:", path)
./aries_cloudagent/__main__.py: print(f"=== Waiting for debugger to attach to {DAP_HOST}:{DAP_PORT} ===")

Goal

Predict processing, network and storage costs in a decentralized, multi-agent decentralized identity system (DID).

Approaches

  • algebraic closed form solution (analytical model)
  • Monte Carlo simulation
  • Load testing
@rngadam
rngadam / VSC_JAVA.md
Created July 29, 2024 20:18
Java development