|
9 | 9 | },
|
10 | 10 | {
|
11 | 11 | "cell_type": "code",
|
12 |
| - "execution_count": 102, |
| 12 | + "execution_count": null, |
| 13 | + "metadata": {}, |
| 14 | + "outputs": [], |
| 15 | + "source": [ |
| 16 | + "########### Soroban limits\n", |
| 17 | + "SOROBAN_READ_ENTRIES_PER_TX = 40\n", |
| 18 | + "SOROBAN_WRITE_ENTRIES_PER_TX = 25\n", |
| 19 | + "SOROBAN_WRITE_BYTES_PER_TX = 129*1024\n", |
| 20 | + "SOROBAN_EVENT_SIZE_PER_TX = 16*1024" |
| 21 | + ] |
| 22 | + }, |
| 23 | + { |
| 24 | + "cell_type": "code", |
| 25 | + "execution_count": null, |
13 | 26 | "metadata": {},
|
14 | 27 | "outputs": [],
|
15 | 28 | "source": [
|
|
48 | 61 | "\n",
|
49 | 62 | " # soroban\n",
|
50 | 63 | " # max number of LE reads\n",
|
51 |
| - " LE_reads_per_op['soroban'] = 40\n", |
| 64 | + " LE_reads_per_op['soroban'] = SOROBAN_READ_ENTRIES_PER_TX\n", |
52 | 65 | " # max number of LE writes\n",
|
53 |
| - " LE_writes_per_op['soroban'] = 25\n", |
| 66 | + " LE_writes_per_op['soroban'] = SOROBAN_WRITE_ENTRIES_PER_TX\n", |
54 | 67 | " # write as much as possible, use max allowed per tx\n",
|
55 | 68 | " # note that this also impacts the total of amount read per tx\n",
|
56 | 69 | " # but as tx also need to load wasm blobs, in average is probably fine\n",
|
57 |
| - " LE_size['soroban'] = (129*1024)/LE_writes_per_op['soroban']\n", |
| 70 | + " LE_size['soroban'] = (SOROBAN_WRITE_BYTES_PER_TX) / LE_writes_per_op['soroban']\n", |
58 | 71 | " # max event produced\n",
|
59 |
| - " event_size_per_op['soroban'] = 16*1024\n", |
| 72 | + " event_size_per_op['soroban'] = SOROBAN_EVENT_SIZE_PER_TX\n", |
60 | 73 | "\n",
|
61 | 74 | " # speedex\n",
|
62 | 75 | " LE_reads_per_op['speedex'] = 4\n",
|
|
81 | 94 | " # avg number of LE writes\n",
|
82 | 95 | " LE_writes_per_op['soroban'] = 5\n",
|
83 | 96 | " # use a 10th of capacity\n",
|
84 |
| - " LE_size['soroban'] = (129*1024)/LE_writes_per_op['soroban']/10\n", |
| 97 | + " LE_size['soroban'] = SOROBAN_WRITE_BYTES_PER_TX / LE_writes_per_op['soroban']/10\n", |
85 | 98 | " # event produced is 50% of max\n",
|
86 |
| - " event_size_per_op['soroban'] = 16*1024/2\n", |
| 99 | + " event_size_per_op['soroban'] = SOROBAN_EVENT_SIZE_PER_TX / 2\n", |
87 | 100 | "\n",
|
88 | 101 | " # speedex\n",
|
89 | 102 | " LE_reads_per_op['speedex'] = 4\n",
|
|
0 commit comments