diff --git a/examples/hello_world_http_server/benchmarks.json b/examples/hello_world_http_server/benchmarks.json
index 793aac8d8f..d96e1be68f 100644
--- a/examples/hello_world_http_server/benchmarks.json
+++ b/examples/hello_world_http_server/benchmarks.json
@@ -1,41 +1,19 @@
{
"backend": {
- "previous": {
- "version": "0.25.0",
- "benchmarks": [
- [
- { "__bigint__": "1729632054202977481" },
- {
- "instructions": { "__bigint__": "8134412120" },
- "method_name": "2"
- }
- ],
- [
- { "__bigint__": "1729632070383750569" },
- {
- "instructions": { "__bigint__": "53820571" },
- "method_name": "1"
- }
- ]
- ]
- },
+ "previous": { "version": "0.25.0", "benchmarks": [] },
"current": {
"version": "0.25.0",
"benchmarks": [
- [
- { "__bigint__": "1729632150390909668" },
- {
- "instructions": { "__bigint__": "8134412120" },
- "method_name": "2"
- }
- ],
- [
- { "__bigint__": "1729632166938651498" },
- {
- "instructions": { "__bigint__": "53820571" },
- "method_name": "1"
- }
- ]
+ {
+ "instructions": { "__bigint__": "8134540687" },
+ "method_name": "2",
+ "timestamp": { "__bigint__": "1729714575428306041" }
+ },
+ {
+ "instructions": { "__bigint__": "53839065" },
+ "method_name": "1",
+ "timestamp": { "__bigint__": "1729714593153022784" }
+ }
]
}
}
diff --git a/examples/hello_world_http_server/benchmarks.md b/examples/hello_world_http_server/benchmarks.md
index 39128a41c2..b8460f5dde 100644
--- a/examples/hello_world_http_server/benchmarks.md
+++ b/examples/hello_world_http_server/benchmarks.md
@@ -2,25 +2,22 @@
## Current benchmarks Azle version: 0.25.0
-| Execution | Method Name | Instructions | Cycles | USD | USD/Thousand Calls | Change |
-| --------- | ----------- | ------------- | ------------- | ------------- | ------------------ | -------------------------- |
-| 0 | 2 | 8,134,412,120 | 3,254,354,848 | $0.0043498032 | $4.3498 | 0 |
-| 1 | 1 | 53,820,571 | 22,118,228 | $0.0000295634 | $0.0296 | 0 |
+| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls |
+| --- | ----------- | ------------- | ------------- | ------------- | ----------------- |
+| 0 | 2 | 8_134_540_687 | 6_454_406_274 | $0.0086270240 | $8627.0240 |
+| 1 | 1 | 53_839_065 | 22_125_626 | $0.0000295733 | $29.5733 |
## Baseline benchmarks Azle version: 0.25.0
-| Execution | Method Name | Instructions | Cycles | USD | USD/Thousand Calls |
-| --------- | ----------- | ------------- | ------------- | ------------- | ------------------ |
-| 0 | 2 | 8,134,412,120 | 3,254,354,848 | $0.0043498032 | $4.3498 |
-| 1 | 1 | 53,820,571 | 22,118,228 | $0.0000295634 | $0.0296 |
-
---
**Note on calculations:**
-- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions)
+- Cycles are calculated using the formula: base_fee + (per_instruction_fee _ number_of_instructions) + (additional_fee_per_billion _ floor(number_of_instructions / 1_billion))
- Base fee: 590,000 cycles
- Per instruction fee: 0.4 cycles
-- USD value is derived from the total cycles, where 1 trillion cycles = 1 XDR, and 1 XDR = $1.336610 (as of December 18, 2023)
+- Additional fee: 400,000,000 cycles per billion instructions
+- USD value is derived from the total cycles, where 1 trillion cycles = 1 XDR, and 1 XDR = $1.33661 (as of December 18, 2023)
-For the most up-to-date fee information, please refer to the [official documentation](https://internetcomputer.org/docs/current/developer-docs/gas-cost#execution).
+For the most up-to-date XDR to USD conversion rate, please refer to the [IMF website](https://www.imf.org/external/np/fin/data/rms_sdrv.aspx).
+For the most current fee information, please check the [official documentation](https://internetcomputer.org/docs/current/developer-docs/gas-cost#execution).
diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/benchmarks.json b/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/benchmarks.json
index 16a562535f..87cc865e56 100644
--- a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/benchmarks.json
+++ b/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/benchmarks.json
@@ -1,235 +1,92 @@
{
"canister1": {
- "previous": {
- "version": "0.25.0",
- "benchmarks": [
- [
- { "__bigint__": "1729632439310502111" },
- {
- "instructions": { "__bigint__": "2297327" },
- "method_name": "balance"
- }
- ],
- [
- { "__bigint__": "1729632441377298671" },
- {
- "instructions": { "__bigint__": "3636679" },
- "method_name": "account"
- }
- ],
- [
- { "__bigint__": "1729632443509545890" },
- {
- "instructions": { "__bigint__": "2221378" },
- "method_name": "balance"
- }
- ],
- [
- { "__bigint__": "1729632445449586634" },
- {
- "instructions": { "__bigint__": "3623902" },
- "method_name": "account"
- }
- ],
- [
- { "__bigint__": "1729632447560820695" },
- {
- "instructions": { "__bigint__": "1655088" },
- "method_name": "accounts"
- }
- ],
- [
- { "__bigint__": "1729632449547837458" },
- {
- "instructions": { "__bigint__": "3566204" },
- "method_name": "transfer"
- }
- ],
- [
- { "__bigint__": "1729632451580541603" },
- {
- "instructions": { "__bigint__": "2215442" },
- "method_name": "balance"
- }
- ],
- [
- { "__bigint__": "1729632453615305653" },
- {
- "instructions": { "__bigint__": "3614259" },
- "method_name": "account"
- }
- ],
- [
- { "__bigint__": "1729632455787773378" },
- {
- "instructions": { "__bigint__": "2212997" },
- "method_name": "balance"
- }
- ],
- [
- { "__bigint__": "1729632457704344005" },
- {
- "instructions": { "__bigint__": "3615297" },
- "method_name": "account"
- }
- ],
- [
- { "__bigint__": "1729632459908573210" },
- {
- "instructions": { "__bigint__": "1653327" },
- "method_name": "accounts"
- }
- ],
- [
- { "__bigint__": "1729632461834660152" },
- {
- "instructions": { "__bigint__": "1625380" },
- "method_name": "trap"
- }
- ],
- [
- { "__bigint__": "1729632463883325209" },
- {
- "instructions": { "__bigint__": "2650327" },
- "method_name": "sendNotification"
- }
- ]
- ]
- },
+ "previous": { "version": "0.25.0", "benchmarks": [] },
"current": {
"version": "0.25.0",
"benchmarks": [
- [
- { "__bigint__": "1729632582436862705" },
- {
- "instructions": { "__bigint__": "2297304" },
- "method_name": "balance"
- }
- ],
- [
- { "__bigint__": "1729632584361601968" },
- {
- "instructions": { "__bigint__": "3636725" },
- "method_name": "account"
- }
- ],
- [
- { "__bigint__": "1729632586604574759" },
- {
- "instructions": { "__bigint__": "2221320" },
- "method_name": "balance"
- }
- ],
- [
- { "__bigint__": "1729632588510040003" },
- {
- "instructions": { "__bigint__": "3623775" },
- "method_name": "account"
- }
- ],
- [
- { "__bigint__": "1729632590701953966" },
- {
- "instructions": { "__bigint__": "1655007" },
- "method_name": "accounts"
- }
- ],
- [
- { "__bigint__": "1729632592634887765" },
- {
- "instructions": { "__bigint__": "3566250" },
- "method_name": "transfer"
- }
- ],
- [
- { "__bigint__": "1729632594576106618" },
- {
- "instructions": { "__bigint__": "2215280" },
- "method_name": "balance"
- }
- ],
- [
- { "__bigint__": "1729632596794815818" },
- {
- "instructions": { "__bigint__": "3614144" },
- "method_name": "account"
- }
- ],
- [
- { "__bigint__": "1729632598708361695" },
- {
- "instructions": { "__bigint__": "2213066" },
- "method_name": "balance"
- }
- ],
- [
- { "__bigint__": "1729632600702941313" },
- {
- "instructions": { "__bigint__": "3615205" },
- "method_name": "account"
- }
- ],
- [
- { "__bigint__": "1729632602819314331" },
- {
- "instructions": { "__bigint__": "1653350" },
- "method_name": "accounts"
- }
- ],
- [
- { "__bigint__": "1729632604911571967" },
- {
- "instructions": { "__bigint__": "1625392" },
- "method_name": "trap"
- }
- ],
- [
- { "__bigint__": "1729632606848584903" },
- {
- "instructions": { "__bigint__": "2650327" },
- "method_name": "sendNotification"
- }
- ]
+ {
+ "instructions": { "__bigint__": "2296025" },
+ "method_name": "balance",
+ "timestamp": { "__bigint__": "1729714519747695193" }
+ },
+ {
+ "instructions": { "__bigint__": "3635289" },
+ "method_name": "account",
+ "timestamp": { "__bigint__": "1729714521691249148" }
+ },
+ {
+ "instructions": { "__bigint__": "2217840" },
+ "method_name": "balance",
+ "timestamp": { "__bigint__": "1729714523840593552" }
+ },
+ {
+ "instructions": { "__bigint__": "3613420" },
+ "method_name": "account",
+ "timestamp": { "__bigint__": "1729714525750420766" }
+ },
+ {
+ "instructions": { "__bigint__": "1653154" },
+ "method_name": "accounts",
+ "timestamp": { "__bigint__": "1729714527857554646" }
+ },
+ {
+ "instructions": { "__bigint__": "3562571" },
+ "method_name": "transfer",
+ "timestamp": { "__bigint__": "1729714529874095831" }
+ },
+ {
+ "instructions": { "__bigint__": "2213914" },
+ "method_name": "balance",
+ "timestamp": { "__bigint__": "1729714531945517721" }
+ },
+ {
+ "instructions": { "__bigint__": "3605228" },
+ "method_name": "account",
+ "timestamp": { "__bigint__": "1729714533952535454" }
+ },
+ {
+ "instructions": { "__bigint__": "2211079" },
+ "method_name": "balance",
+ "timestamp": { "__bigint__": "1729714536032707509" }
+ },
+ {
+ "instructions": { "__bigint__": "3609636" },
+ "method_name": "account",
+ "timestamp": { "__bigint__": "1729714538024298815" }
+ },
+ {
+ "instructions": { "__bigint__": "1651452" },
+ "method_name": "accounts",
+ "timestamp": { "__bigint__": "1729714540130779019" }
+ },
+ {
+ "instructions": { "__bigint__": "1622561" },
+ "method_name": "trap",
+ "timestamp": { "__bigint__": "1729714542106354081" }
+ },
+ {
+ "instructions": { "__bigint__": "2655331" },
+ "method_name": "sendNotification",
+ "timestamp": { "__bigint__": "1729714544160196111" }
+ }
]
}
},
"canister2": {
- "previous": {
- "version": "0.25.0",
- "benchmarks": [
- [
- { "__bigint__": "1729632449547837458" },
- {
- "instructions": { "__bigint__": "2163515" },
- "method_name": "transfer"
- }
- ],
- [
- { "__bigint__": "1729632463883325209" },
- {
- "instructions": { "__bigint__": "1384165" },
- "method_name": "receiveNotification"
- }
- ]
- ]
- },
+ "previous": { "version": "0.25.0", "benchmarks": [] },
"current": {
"version": "0.25.0",
"benchmarks": [
- [
- { "__bigint__": "1729632592634887765" },
- {
- "instructions": { "__bigint__": "2163515" },
- "method_name": "transfer"
- }
- ],
- [
- { "__bigint__": "1729632606848584903" },
- {
- "instructions": { "__bigint__": "1384165" },
- "method_name": "receiveNotification"
- }
- ]
+ {
+ "instructions": { "__bigint__": "2157380" },
+ "method_name": "transfer",
+ "timestamp": { "__bigint__": "1729714529874095831" }
+ },
+ {
+ "instructions": { "__bigint__": "1383243" },
+ "method_name": "receiveNotification",
+ "timestamp": { "__bigint__": "1729714544160196111" }
+ }
]
}
}
diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/benchmarks.md b/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/benchmarks.md
index c215c1ca9b..078e1bd61a 100644
--- a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/benchmarks.md
+++ b/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/benchmarks.md
@@ -2,63 +2,44 @@
## Current benchmarks Azle version: 0.25.0
-| Execution | Method Name | Instructions | Cycles | USD | USD/Thousand Calls | Change |
-| --------- | ---------------- | ------------ | --------- | ------------- | ------------------ | ------------------------------- |
-| 0 | balance | 2,297,304 | 1,508,921 | $0.0000020168 | $0.0020 | -23 |
-| 1 | account | 3,636,725 | 2,044,690 | $0.0000027330 | $0.0027 | +46 |
-| 2 | balance | 2,221,320 | 1,478,528 | $0.0000019762 | $0.0020 | -58 |
-| 3 | account | 3,623,775 | 2,039,510 | $0.0000027260 | $0.0027 | -127 |
-| 4 | accounts | 1,655,007 | 1,252,002 | $0.0000016734 | $0.0017 | -81 |
-| 5 | transfer | 3,566,250 | 2,016,500 | $0.0000026953 | $0.0027 | +46 |
-| 6 | balance | 2,215,280 | 1,476,112 | $0.0000019730 | $0.0020 | -162 |
-| 7 | account | 3,614,144 | 2,035,657 | $0.0000027209 | $0.0027 | -115 |
-| 8 | balance | 2,213,066 | 1,475,226 | $0.0000019718 | $0.0020 | +69 |
-| 9 | account | 3,615,205 | 2,036,082 | $0.0000027214 | $0.0027 | -92 |
-| 10 | accounts | 1,653,350 | 1,251,340 | $0.0000016726 | $0.0017 | +23 |
-| 11 | trap | 1,625,392 | 1,240,156 | $0.0000016576 | $0.0017 | +12 |
-| 12 | sendNotification | 2,650,327 | 1,650,130 | $0.0000022056 | $0.0022 | 0 |
+| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls |
+| --- | ---------------- | ------------ | --------- | ------------- | ----------------- |
+| 0 | balance | 2_296_025 | 1_508_410 | $0.0000020162 | $2.0162 |
+| 1 | account | 3_635_289 | 2_044_115 | $0.0000027322 | $2.7322 |
+| 2 | balance | 2_217_840 | 1_477_136 | $0.0000019744 | $1.9744 |
+| 3 | account | 3_613_420 | 2_035_368 | $0.0000027205 | $2.7205 |
+| 4 | accounts | 1_653_154 | 1_251_261 | $0.0000016724 | $1.6724 |
+| 5 | transfer | 3_562_571 | 2_015_028 | $0.0000026933 | $2.6933 |
+| 6 | balance | 2_213_914 | 1_475_565 | $0.0000019723 | $1.9723 |
+| 7 | account | 3_605_228 | 2_032_091 | $0.0000027161 | $2.7161 |
+| 8 | balance | 2_211_079 | 1_474_431 | $0.0000019707 | $1.9707 |
+| 9 | account | 3_609_636 | 2_033_854 | $0.0000027185 | $2.7185 |
+| 10 | accounts | 1_651_452 | 1_250_580 | $0.0000016715 | $1.6715 |
+| 11 | trap | 1_622_561 | 1_239_024 | $0.0000016561 | $1.6561 |
+| 12 | sendNotification | 2_655_331 | 1_652_132 | $0.0000022083 | $2.2083 |
## Baseline benchmarks Azle version: 0.25.0
-| Execution | Method Name | Instructions | Cycles | USD | USD/Thousand Calls |
-| --------- | ---------------- | ------------ | --------- | ------------- | ------------------ |
-| 0 | balance | 2,297,327 | 1,508,930 | $0.0000020169 | $0.0020 |
-| 1 | account | 3,636,679 | 2,044,671 | $0.0000027329 | $0.0027 |
-| 2 | balance | 2,221,378 | 1,478,551 | $0.0000019762 | $0.0020 |
-| 3 | account | 3,623,902 | 2,039,560 | $0.0000027261 | $0.0027 |
-| 4 | accounts | 1,655,088 | 1,252,035 | $0.0000016735 | $0.0017 |
-| 5 | transfer | 3,566,204 | 2,016,481 | $0.0000026952 | $0.0027 |
-| 6 | balance | 2,215,442 | 1,476,176 | $0.0000019731 | $0.0020 |
-| 7 | account | 3,614,259 | 2,035,703 | $0.0000027209 | $0.0027 |
-| 8 | balance | 2,212,997 | 1,475,198 | $0.0000019718 | $0.0020 |
-| 9 | account | 3,615,297 | 2,036,118 | $0.0000027215 | $0.0027 |
-| 10 | accounts | 1,653,327 | 1,251,330 | $0.0000016725 | $0.0017 |
-| 11 | trap | 1,625,380 | 1,240,152 | $0.0000016576 | $0.0017 |
-| 12 | sendNotification | 2,650,327 | 1,650,130 | $0.0000022056 | $0.0022 |
-
# Benchmarks for canister2
## Current benchmarks Azle version: 0.25.0
-| Execution | Method Name | Instructions | Cycles | USD | USD/Thousand Calls | Change |
-| --------- | ------------------- | ------------ | --------- | ------------- | ------------------ | -------------------------- |
-| 0 | transfer | 2,163,515 | 1,455,406 | $0.0000019453 | $0.0019 | 0 |
-| 1 | receiveNotification | 1,384,165 | 1,143,666 | $0.0000015286 | $0.0015 | 0 |
+| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls |
+| --- | ------------------- | ------------ | --------- | ------------- | ----------------- |
+| 0 | transfer | 2_157_380 | 1_452_952 | $0.0000019420 | $1.9420 |
+| 1 | receiveNotification | 1_383_243 | 1_143_297 | $0.0000015281 | $1.5281 |
## Baseline benchmarks Azle version: 0.25.0
-| Execution | Method Name | Instructions | Cycles | USD | USD/Thousand Calls |
-| --------- | ------------------- | ------------ | --------- | ------------- | ------------------ |
-| 0 | transfer | 2,163,515 | 1,455,406 | $0.0000019453 | $0.0019 |
-| 1 | receiveNotification | 1,384,165 | 1,143,666 | $0.0000015286 | $0.0015 |
-
---
**Note on calculations:**
-- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions)
+- Cycles are calculated using the formula: base_fee + (per_instruction_fee _ number_of_instructions) + (additional_fee_per_billion _ floor(number_of_instructions / 1_billion))
- Base fee: 590,000 cycles
- Per instruction fee: 0.4 cycles
-- USD value is derived from the total cycles, where 1 trillion cycles = 1 XDR, and 1 XDR = $1.336610 (as of December 18, 2023)
+- Additional fee: 400,000,000 cycles per billion instructions
+- USD value is derived from the total cycles, where 1 trillion cycles = 1 XDR, and 1 XDR = $1.33661 (as of December 18, 2023)
-For the most up-to-date fee information, please refer to the [official documentation](https://internetcomputer.org/docs/current/developer-docs/gas-cost#execution).
+For the most up-to-date XDR to USD conversion rate, please refer to the [IMF website](https://www.imf.org/external/np/fin/data/rms_sdrv.aspx).
+For the most current fee information, please check the [official documentation](https://internetcomputer.org/docs/current/developer-docs/gas-cost#execution).
diff --git a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/benchmarks.json b/tests/end_to_end/candid_rpc/class_syntax/notify_raw/benchmarks.json
index 4ee1e37a88..fd9b6f972d 100644
--- a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/benchmarks.json
+++ b/tests/end_to_end/candid_rpc/class_syntax/notify_raw/benchmarks.json
@@ -1,53 +1,27 @@
{
"canister1": {
- "previous": {
- "version": "0.25.0",
- "benchmarks": [
- [
- { "__bigint__": "1729632877384674698" },
- {
- "instructions": { "__bigint__": "1612115" },
- "method_name": "sendNotification"
- }
- ]
- ]
- },
+ "previous": { "version": "0.25.0", "benchmarks": [] },
"current": {
"version": "0.25.0",
"benchmarks": [
- [
- { "__bigint__": "1729632933717115703" },
- {
- "instructions": { "__bigint__": "1612115" },
- "method_name": "sendNotification"
- }
- ]
+ {
+ "instructions": { "__bigint__": "1604051" },
+ "method_name": "sendNotification",
+ "timestamp": { "__bigint__": "1729714463172455556" }
+ }
]
}
},
"canister2": {
- "previous": {
- "version": "0.25.0",
- "benchmarks": [
- [
- { "__bigint__": "1729632877384674698" },
- {
- "instructions": { "__bigint__": "906249" },
- "method_name": "receiveNotification"
- }
- ]
- ]
- },
+ "previous": { "version": "0.25.0", "benchmarks": [] },
"current": {
"version": "0.25.0",
"benchmarks": [
- [
- { "__bigint__": "1729632933717115703" },
- {
- "instructions": { "__bigint__": "906249" },
- "method_name": "receiveNotification"
- }
- ]
+ {
+ "instructions": { "__bigint__": "907281" },
+ "method_name": "receiveNotification",
+ "timestamp": { "__bigint__": "1729714463172455556" }
+ }
]
}
}
diff --git a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/benchmarks.md b/tests/end_to_end/candid_rpc/class_syntax/notify_raw/benchmarks.md
index 7c30e781fc..05286249c4 100644
--- a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/benchmarks.md
+++ b/tests/end_to_end/candid_rpc/class_syntax/notify_raw/benchmarks.md
@@ -2,37 +2,31 @@
## Current benchmarks Azle version: 0.25.0
-| Execution | Method Name | Instructions | Cycles | USD | USD/Thousand Calls | Change |
-| --------- | ---------------- | ------------ | --------- | ------------- | ------------------ | -------------------------- |
-| 0 | sendNotification | 1,612,115 | 1,234,846 | $0.0000016505 | $0.0017 | 0 |
+| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls |
+| --- | ---------------- | ------------ | --------- | ------------- | ----------------- |
+| 0 | sendNotification | 1_604_051 | 1_231_620 | $0.0000016462 | $1.6462 |
## Baseline benchmarks Azle version: 0.25.0
-| Execution | Method Name | Instructions | Cycles | USD | USD/Thousand Calls |
-| --------- | ---------------- | ------------ | --------- | ------------- | ------------------ |
-| 0 | sendNotification | 1,612,115 | 1,234,846 | $0.0000016505 | $0.0017 |
-
# Benchmarks for canister2
## Current benchmarks Azle version: 0.25.0
-| Execution | Method Name | Instructions | Cycles | USD | USD/Thousand Calls | Change |
-| --------- | ------------------- | ------------ | ------- | ------------- | ------------------ | -------------------------- |
-| 0 | receiveNotification | 906,249 | 952,499 | $0.0000012731 | $0.0013 | 0 |
+| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls |
+| --- | ------------------- | ------------ | ------- | ------------- | ----------------- |
+| 0 | receiveNotification | 907_281 | 952_912 | $0.0000012737 | $1.2737 |
## Baseline benchmarks Azle version: 0.25.0
-| Execution | Method Name | Instructions | Cycles | USD | USD/Thousand Calls |
-| --------- | ------------------- | ------------ | ------- | ------------- | ------------------ |
-| 0 | receiveNotification | 906,249 | 952,499 | $0.0000012731 | $0.0013 |
-
---
**Note on calculations:**
-- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions)
+- Cycles are calculated using the formula: base_fee + (per_instruction_fee _ number_of_instructions) + (additional_fee_per_billion _ floor(number_of_instructions / 1_billion))
- Base fee: 590,000 cycles
- Per instruction fee: 0.4 cycles
-- USD value is derived from the total cycles, where 1 trillion cycles = 1 XDR, and 1 XDR = $1.336610 (as of December 18, 2023)
+- Additional fee: 400,000,000 cycles per billion instructions
+- USD value is derived from the total cycles, where 1 trillion cycles = 1 XDR, and 1 XDR = $1.33661 (as of December 18, 2023)
-For the most up-to-date fee information, please refer to the [official documentation](https://internetcomputer.org/docs/current/developer-docs/gas-cost#execution).
+For the most up-to-date XDR to USD conversion rate, please refer to the [IMF website](https://www.imf.org/external/np/fin/data/rms_sdrv.aspx).
+For the most current fee information, please check the [official documentation](https://internetcomputer.org/docs/current/developer-docs/gas-cost#execution).