Skip to content

Variant Support - Accessing and Indexing#11

Merged
tomijaga merged 4 commits into0.0.1from
variant2
Dec 30, 2024
Merged

Variant Support - Accessing and Indexing#11
tomijaga merged 4 commits into0.0.1from
variant2

Conversation

@tomijaga
Copy link
Copy Markdown
Member

Related to #8:

  • Index on variant fields
  • Index on a field nested in a variant

@github-actions
Copy link
Copy Markdown
Contributor

Benchmark Results

Benchmark files:
• bench/txs.bench.mo

==================================================

Starting dfx replica...
Deploying canisters...

——————————————————————————————————————————————————

Running bench/txs.bench.mo...

| insert with 5 indexes | 224 MiB |
0 B |
| btype == '1mint' | 0 B |
0 B |
| btype == '1xfer' or '2xfer' | 0 B |
0 B |
| principals[0] == tx.to.owner (is recipient) | 0 B |
0 B |
| principals[0..10] == tx.to.owner (is recipient) | 0 B |
0 B |
| 250 < tx.amt <= 400 | 0 B |
0 B |
| btype == 1burn and tx.amt >= 750 | 0 B |
0 B |

Garbage Collection

| | (full scan, -> array) | (ind
ex intersection, -> array) |
| :---------------------------------------------- | --------------------: | ----
-------------------------: |
| insert | 187.89 MiB |
0 B |
| clear | 0 B |
0 B |
| insert with 5 indexes | 795.88 MiB |
0 B |
| btype == '1mint' | 0 B |
0 B |
| btype == '1xfer' or '2xfer' | 0 B |
29.96 MiB |
| principals[0] == tx.to.owner (is recipient) | 0 B |
0 B |
| principals[0..10] == tx.to.owner (is recipient) | 0 B |
0 B |
| 250 < tx.amt <= 400 | 0 B |
0 B |
| btype == 1burn and tx.amt >= 750 | 27.88 MiB |
0 B |

Stopping replica...

@tomijaga tomijaga merged commit f8db9ea into 0.0.1 Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant