diff --git a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/benchmarks.json new file mode 100644 index 0000000000..08913e8e7e --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/benchmarks.json @@ -0,0 +1,35 @@ +{ + "audio_recorder": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "14173119" }, + "method_name": "createUser", + "timestamp": { "__bigint__": "1730238474240973091" } + }, + { + "instructions": { "__bigint__": "34642331" }, + "method_name": "createRecording", + "timestamp": { "__bigint__": "1730238476388691423" } + }, + { + "instructions": { "__bigint__": "48510538" }, + "method_name": "deleteRecording", + "timestamp": { "__bigint__": "1730238478398934311" } + }, + { + "instructions": { "__bigint__": "34435848" }, + "method_name": "createRecording", + "timestamp": { "__bigint__": "1730238480509177559" } + }, + { + "instructions": { "__bigint__": "34124394" }, + "method_name": "deleteUser", + "timestamp": { "__bigint__": "1730238482687412095" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/benchmarks.md new file mode 100644 index 0000000000..0795fcceba --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/benchmarks.md @@ -0,0 +1,28 @@ +# Benchmarks for audio_recorder + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | --------------- | ------------ | ---------- | ------------- | ----------------- | +| 0 | createUser | 14_173_119 | 6_259_247 | $0.0000083227 | $8.32 | +| 1 | createRecording | 34_642_331 | 14_446_932 | $0.0000192097 | $19.20 | +| 2 | deleteRecording | 48_510_538 | 19_994_215 | $0.0000265857 | $26.58 | +| 3 | createRecording | 34_435_848 | 14_364_339 | $0.0000190998 | $19.09 | +| 4 | deleteUser | 34_124_394 | 14_239_757 | $0.0000189342 | $18.93 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/blob_array/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/blob_array/benchmarks.json new file mode 100644 index 0000000000..536a72ba61 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/blob_array/benchmarks.json @@ -0,0 +1,6 @@ +{ + "blob_array": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/blob_array/benchmarks.md new file mode 100644 index 0000000000..ef5b27c688 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/blob_array/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for blob_array + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/call_raw/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/call_raw/benchmarks.json new file mode 100644 index 0000000000..09c3937b33 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/call_raw/benchmarks.json @@ -0,0 +1,20 @@ +{ + "call_raw": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "1461529" }, + "method_name": "executeCallRaw", + "timestamp": { "__bigint__": "1730238472455247194" } + }, + { + "instructions": { "__bigint__": "1969233" }, + "method_name": "executeCallRaw", + "timestamp": { "__bigint__": "1730238474351129174" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/call_raw/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/call_raw/benchmarks.md new file mode 100644 index 0000000000..241f8ee929 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/call_raw/benchmarks.md @@ -0,0 +1,25 @@ +# Benchmarks for call_raw + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | -------------- | ------------ | --------- | ------------- | ----------------- | +| 0 | executeCallRaw | 1_461_529 | 1_174_611 | $0.0000015618 | $1.56 | +| 1 | executeCallRaw | 1_969_233 | 1_377_693 | $0.0000018319 | $1.83 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/candid_keywords/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/benchmarks.json new file mode 100644 index 0000000000..70dfa56b79 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/benchmarks.json @@ -0,0 +1,6 @@ +{ + "candid_keywords": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/benchmarks.md new file mode 100644 index 0000000000..9a6ce193b0 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for candid_keywords + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/complex_types/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/complex_types/benchmarks.json new file mode 100644 index 0000000000..48db233962 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/complex_types/benchmarks.json @@ -0,0 +1,30 @@ +{ + "complex_types": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "80582078" }, + "method_name": "createUser", + "timestamp": { "__bigint__": "1730238462163868272" } + }, + { + "instructions": { "__bigint__": "164270619" }, + "method_name": "createThread", + "timestamp": { "__bigint__": "1730238464335475487" } + }, + { + "instructions": { "__bigint__": "86867411" }, + "method_name": "createPost", + "timestamp": { "__bigint__": "1730238466209860344" } + }, + { + "instructions": { "__bigint__": "173117467" }, + "method_name": "createReaction", + "timestamp": { "__bigint__": "1730238468310092773" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/complex_types/benchmarks.md new file mode 100644 index 0000000000..e5454e1519 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/complex_types/benchmarks.md @@ -0,0 +1,27 @@ +# Benchmarks for complex_types + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | -------------- | ------------ | ---------- | ------------- | ----------------- | +| 0 | createUser | 80_582_078 | 32_822_831 | $0.0000436435 | $43.64 | +| 1 | createThread | 164_270_619 | 66_298_247 | $0.0000881548 | $88.15 | +| 2 | createPost | 86_867_411 | 35_336_964 | $0.0000469865 | $46.98 | +| 3 | createReaction | 173_117_467 | 69_836_986 | $0.0000928601 | $92.86 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/counter/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/counter/benchmarks.json new file mode 100644 index 0000000000..4195a2e311 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/counter/benchmarks.json @@ -0,0 +1,25 @@ +{ + "counter": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "1481635" }, + "method_name": "incrementCount", + "timestamp": { "__bigint__": "1730238465545805121" } + }, + { + "instructions": { "__bigint__": "1455012" }, + "method_name": "incrementCount", + "timestamp": { "__bigint__": "1730238467454494763" } + }, + { + "instructions": { "__bigint__": "1454315" }, + "method_name": "incrementCount", + "timestamp": { "__bigint__": "1730238469634024056" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/counter/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/counter/benchmarks.md new file mode 100644 index 0000000000..284ac0bda6 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/counter/benchmarks.md @@ -0,0 +1,26 @@ +# Benchmarks for counter + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | -------------- | ------------ | --------- | ------------- | ----------------- | +| 0 | incrementCount | 1_481_635 | 1_182_654 | $0.0000015725 | $1.57 | +| 1 | incrementCount | 1_455_012 | 1_172_004 | $0.0000015584 | $1.55 | +| 2 | incrementCount | 1_454_315 | 1_171_726 | $0.0000015580 | $1.55 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/date/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/date/benchmarks.json new file mode 100644 index 0000000000..aed3da8538 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/date/benchmarks.json @@ -0,0 +1,6 @@ +{ + "date": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/date/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/date/benchmarks.md new file mode 100644 index 0000000000..147974e8c0 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/date/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for date + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/imports/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/imports/benchmarks.json new file mode 100644 index 0000000000..95902bf9e1 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/imports/benchmarks.json @@ -0,0 +1,6 @@ +{ + "imports": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/imports/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/imports/benchmarks.md new file mode 100644 index 0000000000..929c5e1251 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/imports/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for imports + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/init/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/init/benchmarks.json new file mode 100644 index 0000000000..f4623ca0ee --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/init/benchmarks.json @@ -0,0 +1,15 @@ +{ + "init": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "5358645869" }, + "method_name": "init", + "timestamp": { "__bigint__": "1730238454716344381" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/init/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/init/benchmarks.md new file mode 100644 index 0000000000..ce127a67f4 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/init/benchmarks.md @@ -0,0 +1,24 @@ +# Benchmarks for init + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ----------- | ------------- | ------------- | ------------- | ----------------- | +| 0 | init | 5_358_645_869 | 4_144_048_347 | $0.0055102168 | $5_510.21 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/inspect_message/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/benchmarks.json new file mode 100644 index 0000000000..e693397da0 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/benchmarks.json @@ -0,0 +1,15 @@ +{ + "inspect_message": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "1054509" }, + "method_name": "accessible", + "timestamp": { "__bigint__": "1730238462503055442" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/benchmarks.md new file mode 100644 index 0000000000..b81617c17d --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/benchmarks.md @@ -0,0 +1,24 @@ +# Benchmarks for inspect_message + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ----------- | ------------ | --------- | ------------- | ----------------- | +| 0 | accessible | 1_054_509 | 1_011_803 | $0.0000013454 | $1.34 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/key_value_store/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/benchmarks.json new file mode 100644 index 0000000000..49f7864df3 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/benchmarks.json @@ -0,0 +1,20 @@ +{ + "key_value_store": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "1414666" }, + "method_name": "set", + "timestamp": { "__bigint__": "1730238462308025970" } + }, + { + "instructions": { "__bigint__": "1385879" }, + "method_name": "set", + "timestamp": { "__bigint__": "1730238464469192457" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/benchmarks.md new file mode 100644 index 0000000000..8765fcb3ae --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/benchmarks.md @@ -0,0 +1,25 @@ +# Benchmarks for key_value_store + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ----------- | ------------ | --------- | ------------- | ----------------- | +| 0 | set | 1_414_666 | 1_155_866 | $0.0000015369 | $1.53 | +| 1 | set | 1_385_879 | 1_144_351 | $0.0000015216 | $1.52 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/list_of_lists/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/benchmarks.json new file mode 100644 index 0000000000..83457e4ec4 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/benchmarks.json @@ -0,0 +1,6 @@ +{ + "list_of_lists": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/benchmarks.md new file mode 100644 index 0000000000..5b13de13c0 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for list_of_lists + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/motoko_examples/calc/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/benchmarks.json new file mode 100644 index 0000000000..4974ec598d --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/benchmarks.json @@ -0,0 +1,40 @@ +{ + "calc": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "1276291" }, + "method_name": "add", + "timestamp": { "__bigint__": "1730238460869581928" } + }, + { + "instructions": { "__bigint__": "1254903" }, + "method_name": "sub", + "timestamp": { "__bigint__": "1730238462738492062" } + }, + { + "instructions": { "__bigint__": "1253156" }, + "method_name": "mul", + "timestamp": { "__bigint__": "1730238464962614802" } + }, + { + "instructions": { "__bigint__": "1617163" }, + "method_name": "div", + "timestamp": { "__bigint__": "1730238466865609239" } + }, + { + "instructions": { "__bigint__": "850175" }, + "method_name": "clearall", + "timestamp": { "__bigint__": "1730238469042100051" } + }, + { + "instructions": { "__bigint__": "1250619" }, + "method_name": "add", + "timestamp": { "__bigint__": "1730238470972651480" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/benchmarks.md new file mode 100644 index 0000000000..bdb2d616bf --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/benchmarks.md @@ -0,0 +1,29 @@ +# Benchmarks for calc + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ----------- | ------------ | --------- | ------------- | ----------------- | +| 0 | add | 1_276_291 | 1_100_516 | $0.0000014633 | $1.46 | +| 1 | sub | 1_254_903 | 1_091_961 | $0.0000014519 | $1.45 | +| 2 | mul | 1_253_156 | 1_091_262 | $0.0000014510 | $1.45 | +| 3 | div | 1_617_163 | 1_236_865 | $0.0000016446 | $1.64 | +| 4 | clearall | 850_175 | 930_070 | $0.0000012367 | $1.23 | +| 5 | add | 1_250_619 | 1_090_247 | $0.0000014497 | $1.44 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/motoko_examples/counter/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/benchmarks.json new file mode 100644 index 0000000000..700600c09e --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/benchmarks.json @@ -0,0 +1,25 @@ +{ + "counter": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "993893" }, + "method_name": "set", + "timestamp": { "__bigint__": "1730238461537724286" } + }, + { + "instructions": { "__bigint__": "851892" }, + "method_name": "inc", + "timestamp": { "__bigint__": "1730238463647224657" } + }, + { + "instructions": { "__bigint__": "851905" }, + "method_name": "inc", + "timestamp": { "__bigint__": "1730238465548533605" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/benchmarks.md new file mode 100644 index 0000000000..9b863c40a8 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/benchmarks.md @@ -0,0 +1,26 @@ +# Benchmarks for counter + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ----------- | ------------ | ------- | ------------- | ----------------- | +| 0 | set | 993_893 | 987_557 | $0.0000013131 | $1.31 | +| 1 | inc | 851_892 | 930_756 | $0.0000012376 | $1.23 | +| 2 | inc | 851_905 | 930_762 | $0.0000012376 | $1.23 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/motoko_examples/echo/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/benchmarks.json new file mode 100644 index 0000000000..d334b0da72 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/benchmarks.json @@ -0,0 +1,6 @@ +{ + "echo": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/benchmarks.md new file mode 100644 index 0000000000..9e4324d7d4 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for echo + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/motoko_examples/factorial/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/benchmarks.json new file mode 100644 index 0000000000..8dfbf1de28 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/benchmarks.json @@ -0,0 +1,35 @@ +{ + "factorial": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "1248857" }, + "method_name": "fac", + "timestamp": { "__bigint__": "1730238460067576405" } + }, + { + "instructions": { "__bigint__": "1248637" }, + "method_name": "fac", + "timestamp": { "__bigint__": "1730238462229032783" } + }, + { + "instructions": { "__bigint__": "1717381" }, + "method_name": "fac", + "timestamp": { "__bigint__": "1730238464242275023" } + }, + { + "instructions": { "__bigint__": "2951919" }, + "method_name": "fac", + "timestamp": { "__bigint__": "1730238466359616969" } + }, + { + "instructions": { "__bigint__": "5520606" }, + "method_name": "fac", + "timestamp": { "__bigint__": "1730238468549698572" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/benchmarks.md new file mode 100644 index 0000000000..70063b15dc --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/benchmarks.md @@ -0,0 +1,28 @@ +# Benchmarks for factorial + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ----------- | ------------ | --------- | ------------- | ----------------- | +| 0 | fac | 1_248_857 | 1_089_542 | $0.0000014487 | $1.44 | +| 1 | fac | 1_248_637 | 1_089_454 | $0.0000014486 | $1.44 | +| 2 | fac | 1_717_381 | 1_276_952 | $0.0000016979 | $1.69 | +| 3 | fac | 2_951_919 | 1_770_767 | $0.0000023545 | $2.35 | +| 4 | fac | 5_520_606 | 2_798_242 | $0.0000037207 | $3.72 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/motoko_examples/hello-world/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/benchmarks.json new file mode 100644 index 0000000000..96c5849f68 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/benchmarks.json @@ -0,0 +1,6 @@ +{ + "hello_world": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/benchmarks.md new file mode 100644 index 0000000000..f49953fae6 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for hello_world + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/motoko_examples/hello/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/benchmarks.json new file mode 100644 index 0000000000..68748af522 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/benchmarks.json @@ -0,0 +1,6 @@ +{ + "hello": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/benchmarks.md new file mode 100644 index 0000000000..ea1717996e --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for hello + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/motoko_examples/minimal-counter-dapp/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/benchmarks.json new file mode 100644 index 0000000000..53f12b45db --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/benchmarks.json @@ -0,0 +1,30 @@ +{ + "minimal_dapp": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "1122048" }, + "method_name": "count", + "timestamp": { "__bigint__": "1730238466399657578" } + }, + { + "instructions": { "__bigint__": "1091308" }, + "method_name": "count", + "timestamp": { "__bigint__": "1730238468507380848" } + }, + { + "instructions": { "__bigint__": "1091646" }, + "method_name": "reset", + "timestamp": { "__bigint__": "1730238470722820473" } + }, + { + "instructions": { "__bigint__": "1098247" }, + "method_name": "count", + "timestamp": { "__bigint__": "1730238472623543332" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/benchmarks.md new file mode 100644 index 0000000000..9b2a309a3a --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/benchmarks.md @@ -0,0 +1,27 @@ +# Benchmarks for minimal_dapp + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ----------- | ------------ | --------- | ------------- | ----------------- | +| 0 | count | 1_122_048 | 1_038_819 | $0.0000013813 | $1.38 | +| 1 | count | 1_091_308 | 1_026_523 | $0.0000013649 | $1.36 | +| 2 | reset | 1_091_646 | 1_026_658 | $0.0000013651 | $1.36 | +| 3 | count | 1_098_247 | 1_029_298 | $0.0000013686 | $1.36 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/motoko_examples/persistent-storage/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/benchmarks.json new file mode 100644 index 0000000000..a429335ffa --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/benchmarks.json @@ -0,0 +1,15 @@ +{ + "persistent_storage": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "5365081297" }, + "method_name": "postUpgrade", + "timestamp": { "__bigint__": "1730238475878225248" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/benchmarks.md new file mode 100644 index 0000000000..cd2dea53d2 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/benchmarks.md @@ -0,0 +1,24 @@ +# Benchmarks for persistent_storage + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ----------- | ------------- | ------------- | ------------- | ----------------- | +| 0 | postUpgrade | 5_365_081_297 | 4_146_622_518 | $0.0055136396 | $5_513.63 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/motoko_examples/phone-book/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/benchmarks.json new file mode 100644 index 0000000000..c3260c1573 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/benchmarks.json @@ -0,0 +1,15 @@ +{ + "phone_book": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "3414930" }, + "method_name": "insert", + "timestamp": { "__bigint__": "1730238463434815805" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/benchmarks.md new file mode 100644 index 0000000000..dc4d53a65d --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/benchmarks.md @@ -0,0 +1,24 @@ +# Benchmarks for phone_book + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ----------- | ------------ | --------- | ------------- | ----------------- | +| 0 | insert | 3_414_930 | 1_955_972 | $0.0000026008 | $2.60 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/motoko_examples/quicksort/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/benchmarks.json new file mode 100644 index 0000000000..0c6ae933b1 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/benchmarks.json @@ -0,0 +1,6 @@ +{ + "quicksort": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/benchmarks.md new file mode 100644 index 0000000000..52b5ab2928 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for quicksort + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/motoko_examples/simple-to-do/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/benchmarks.json new file mode 100644 index 0000000000..2d1953a302 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/benchmarks.json @@ -0,0 +1,40 @@ +{ + "simple_to_do": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "1923734" }, + "method_name": "addTodo", + "timestamp": { "__bigint__": "1730238469465332145" } + }, + { + "instructions": { "__bigint__": "1678531" }, + "method_name": "addTodo", + "timestamp": { "__bigint__": "1730238471402445879" } + }, + { + "instructions": { "__bigint__": "989602" }, + "method_name": "completeTodo", + "timestamp": { "__bigint__": "1730238473552037590" } + }, + { + "instructions": { "__bigint__": "894339" }, + "method_name": "clearCompleted", + "timestamp": { "__bigint__": "1730238475737717203" } + }, + { + "instructions": { "__bigint__": "982997" }, + "method_name": "completeTodo", + "timestamp": { "__bigint__": "1730238477629290292" } + }, + { + "instructions": { "__bigint__": "881373" }, + "method_name": "clearCompleted", + "timestamp": { "__bigint__": "1730238479970364206" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/benchmarks.md new file mode 100644 index 0000000000..bce144db6e --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/benchmarks.md @@ -0,0 +1,29 @@ +# Benchmarks for simple_to_do + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | -------------- | ------------ | --------- | ------------- | ----------------- | +| 0 | addTodo | 1_923_734 | 1_359_493 | $0.0000018077 | $1.80 | +| 1 | addTodo | 1_678_531 | 1_261_412 | $0.0000016773 | $1.67 | +| 2 | completeTodo | 989_602 | 985_840 | $0.0000013108 | $1.31 | +| 3 | clearCompleted | 894_339 | 947_735 | $0.0000012602 | $1.26 | +| 4 | completeTodo | 982_997 | 983_198 | $0.0000013073 | $1.30 | +| 5 | clearCompleted | 881_373 | 942_549 | $0.0000012533 | $1.25 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/motoko_examples/superheroes/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/benchmarks.json new file mode 100644 index 0000000000..315be3974b --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/benchmarks.json @@ -0,0 +1,40 @@ +{ + "superheroes": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "4480732" }, + "method_name": "create", + "timestamp": { "__bigint__": "1730238472003854901" } + }, + { + "instructions": { "__bigint__": "5781720" }, + "method_name": "create", + "timestamp": { "__bigint__": "1730238473922225910" } + }, + { + "instructions": { "__bigint__": "6213011" }, + "method_name": "update", + "timestamp": { "__bigint__": "1730238476048670943" } + }, + { + "instructions": { "__bigint__": "4396975" }, + "method_name": "update", + "timestamp": { "__bigint__": "1730238478061671482" } + }, + { + "instructions": { "__bigint__": "1223082" }, + "method_name": "deleteHero", + "timestamp": { "__bigint__": "1730238480206635453" } + }, + { + "instructions": { "__bigint__": "1212082" }, + "method_name": "deleteHero", + "timestamp": { "__bigint__": "1730238482187158237" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/benchmarks.md new file mode 100644 index 0000000000..7d8c17ba8a --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/benchmarks.md @@ -0,0 +1,29 @@ +# Benchmarks for superheroes + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ----------- | ------------ | --------- | ------------- | ----------------- | +| 0 | create | 4_480_732 | 2_382_292 | $0.0000031677 | $3.16 | +| 1 | create | 5_781_720 | 2_902_688 | $0.0000038596 | $3.85 | +| 2 | update | 6_213_011 | 3_075_204 | $0.0000040890 | $4.08 | +| 3 | update | 4_396_975 | 2_348_790 | $0.0000031231 | $3.12 | +| 4 | deleteHero | 1_223_082 | 1_079_232 | $0.0000014350 | $1.43 | +| 5 | deleteHero | 1_212_082 | 1_074_832 | $0.0000014292 | $1.42 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/null_example/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/null_example/benchmarks.json new file mode 100644 index 0000000000..c7c4d71b27 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/null_example/benchmarks.json @@ -0,0 +1,25 @@ +{ + "null_example": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "8986991" }, + "method_name": "setPartiallyNullRecord", + "timestamp": { "__bigint__": "1730238471001509070" } + }, + { + "instructions": { "__bigint__": "5402154" }, + "method_name": "setSmallNullRecord", + "timestamp": { "__bigint__": "1730238473276970821" } + }, + { + "instructions": { "__bigint__": "8718130" }, + "method_name": "setLargeNullRecord", + "timestamp": { "__bigint__": "1730238475225435325" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/null_example/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/null_example/benchmarks.md new file mode 100644 index 0000000000..597baffae8 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/null_example/benchmarks.md @@ -0,0 +1,26 @@ +# Benchmarks for null_example + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ---------------------- | ------------ | --------- | ------------- | ----------------- | +| 0 | setPartiallyNullRecord | 8_986_991 | 4_184_796 | $0.0000055644 | $5.56 | +| 1 | setSmallNullRecord | 5_402_154 | 2_750_861 | $0.0000036577 | $3.65 | +| 2 | setLargeNullRecord | 8_718_130 | 4_077_252 | $0.0000054214 | $5.42 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/optional_types/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/optional_types/benchmarks.json new file mode 100644 index 0000000000..639f872f67 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/optional_types/benchmarks.json @@ -0,0 +1,6 @@ +{ + "optional_types": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/optional_types/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/optional_types/benchmarks.md new file mode 100644 index 0000000000..18fc6c72e9 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/optional_types/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for optional_types + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/pre_and_post_upgrade/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/benchmarks.json new file mode 100644 index 0000000000..cbbb22be3e --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/benchmarks.json @@ -0,0 +1,15 @@ +{ + "pre_and_post_upgrade": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "5369433219" }, + "method_name": "postUpgrade", + "timestamp": { "__bigint__": "1730238480794132538" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/benchmarks.md new file mode 100644 index 0000000000..2b0b0ffa51 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/benchmarks.md @@ -0,0 +1,24 @@ +# Benchmarks for pre_and_post_upgrade + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ----------- | ------------- | ------------- | ------------- | ----------------- | +| 0 | postUpgrade | 5_369_433_219 | 4_148_363_287 | $0.0055159542 | $5_515.95 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/primitive_types/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/benchmarks.json new file mode 100644 index 0000000000..6d60f6514d --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/benchmarks.json @@ -0,0 +1,6 @@ +{ + "primitive_types": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/benchmarks.md new file mode 100644 index 0000000000..01aaa41b5c --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for primitive_types + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/principal/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/principal/benchmarks.json new file mode 100644 index 0000000000..d2a02583ac --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/principal/benchmarks.json @@ -0,0 +1,6 @@ +{ + "principal": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/principal/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/principal/benchmarks.md new file mode 100644 index 0000000000..9cb5784f8c --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/principal/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for principal + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/query/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/query/benchmarks.json new file mode 100644 index 0000000000..84c5c87d0b --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/query/benchmarks.json @@ -0,0 +1,6 @@ +{ + "query": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/query/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/query/benchmarks.md new file mode 100644 index 0000000000..8d22afaa5f --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/query/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for query + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/robust_imports/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/benchmarks.json new file mode 100644 index 0000000000..6950ee4f14 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/benchmarks.json @@ -0,0 +1,540 @@ +{ + "robust_imports": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "6251005422" }, + "method_name": "separateArilsFromPith", + "timestamp": { "__bigint__": "1730238481074209176" } + }, + { + "instructions": { "__bigint__": "8903923" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238481148986667" } + }, + { + "instructions": { "__bigint__": "8904036" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238481172907041" } + }, + { + "instructions": { "__bigint__": "8904061" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238481800863841" } + }, + { + "instructions": { "__bigint__": "8904035" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238482028408810" } + }, + { + "instructions": { "__bigint__": "8903790" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238482257779149" } + }, + { + "instructions": { "__bigint__": "8903765" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238482279952711" } + }, + { + "instructions": { "__bigint__": "8903789" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238482304278211" } + }, + { + "instructions": { "__bigint__": "8903766" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238482325765430" } + }, + { + "instructions": { "__bigint__": "8903453" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238482550864610" } + }, + { + "instructions": { "__bigint__": "8903428" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238482574502273" } + }, + { + "instructions": { "__bigint__": "8903454" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238482602840595" } + }, + { + "instructions": { "__bigint__": "8903428" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238482627177359" } + }, + { + "instructions": { "__bigint__": "8903455" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238482854863158" } + }, + { + "instructions": { "__bigint__": "8903428" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238482883639929" } + }, + { + "instructions": { "__bigint__": "8903453" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238482914417965" } + }, + { + "instructions": { "__bigint__": "8903429" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238482936318003" } + }, + { + "instructions": { "__bigint__": "8903771" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238483161148985" } + }, + { + "instructions": { "__bigint__": "8903772" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238483185498946" } + }, + { + "instructions": { "__bigint__": "8904089" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238483212382995" } + }, + { + "instructions": { "__bigint__": "8903859" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238483238224595" } + }, + { + "instructions": { "__bigint__": "8903254" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238483469783444" } + }, + { + "instructions": { "__bigint__": "8893386" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238483499241027" } + }, + { + "instructions": { "__bigint__": "8878242" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238483525267943" } + }, + { + "instructions": { "__bigint__": "8879057" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238483552569829" } + }, + { + "instructions": { "__bigint__": "8901622" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238483781496848" } + }, + { + "instructions": { "__bigint__": "8891033" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238483806225687" } + }, + { + "instructions": { "__bigint__": "8892361" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238483833975166" } + }, + { + "instructions": { "__bigint__": "8903359" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238483857978012" } + }, + { + "instructions": { "__bigint__": "8912758" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238484087230250" } + }, + { + "instructions": { "__bigint__": "8910591" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238484125969035" } + }, + { + "instructions": { "__bigint__": "8914810" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238484160956055" } + }, + { + "instructions": { "__bigint__": "8916434" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238484185504587" } + }, + { + "instructions": { "__bigint__": "2057127" }, + "method_name": "setStable", + "timestamp": { "__bigint__": "1730238484413715765" } + }, + { + "instructions": { "__bigint__": "8915518" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238484436658502" } + }, + { + "instructions": { "__bigint__": "8915775" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238484459547446" } + }, + { + "instructions": { "__bigint__": "8913331" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238484483496418" } + }, + { + "instructions": { "__bigint__": "8915468" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238484505837082" } + }, + { + "instructions": { "__bigint__": "8914668" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238484735011490" } + }, + { + "instructions": { "__bigint__": "8913430" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238484810206218" } + }, + { + "instructions": { "__bigint__": "8913494" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238484871176427" } + }, + { + "instructions": { "__bigint__": "8908963" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238484917842872" } + }, + { + "instructions": { "__bigint__": "8912063" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238485143233190" } + }, + { + "instructions": { "__bigint__": "8916031" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238485166339678" } + }, + { + "instructions": { "__bigint__": "8918107" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238485214214205" } + }, + { + "instructions": { "__bigint__": "8918920" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238485234148142" } + }, + { + "instructions": { "__bigint__": "8921717" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238485457919436" } + }, + { + "instructions": { "__bigint__": "8919659" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238485482844489" } + }, + { + "instructions": { "__bigint__": "8921796" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238485501528566" } + }, + { + "instructions": { "__bigint__": "8922035" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238485518951932" } + }, + { + "instructions": { "__bigint__": "8922640" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238485538358181" } + }, + { + "instructions": { "__bigint__": "8922225" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238485763425763" } + }, + { + "instructions": { "__bigint__": "8919777" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238485784340026" } + }, + { + "instructions": { "__bigint__": "8915397" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238485807895785" } + }, + { + "instructions": { "__bigint__": "8919860" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238485829508942" } + }, + { + "instructions": { "__bigint__": "8925984" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486054482212" } + }, + { + "instructions": { "__bigint__": "8918311" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486074478035" } + }, + { + "instructions": { "__bigint__": "8926067" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486096295679" } + }, + { + "instructions": { "__bigint__": "8925758" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486117319567" } + }, + { + "instructions": { "__bigint__": "8926094" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486144845290" } + }, + { + "instructions": { "__bigint__": "8925841" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486167137473" } + }, + { + "instructions": { "__bigint__": "8924414" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486188376524" } + }, + { + "instructions": { "__bigint__": "8919216" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486413495868" } + }, + { + "instructions": { "__bigint__": "8921602" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486433741714" } + }, + { + "instructions": { "__bigint__": "8920470" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486458336108" } + }, + { + "instructions": { "__bigint__": "8925709" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486486391413" } + }, + { + "instructions": { "__bigint__": "8924384" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486712468273" } + }, + { + "instructions": { "__bigint__": "8924775" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486741123691" } + }, + { + "instructions": { "__bigint__": "8920843" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486772163955" } + }, + { + "instructions": { "__bigint__": "8923304" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486797738144" } + }, + { + "instructions": { "__bigint__": "8922484" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238486832356057" } + }, + { + "instructions": { "__bigint__": "8922908" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238487059476839" } + }, + { + "instructions": { "__bigint__": "8922955" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238487087038700" } + }, + { + "instructions": { "__bigint__": "8923103" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238487111735422" } + }, + { + "instructions": { "__bigint__": "8922411" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238487138461861" } + }, + { + "instructions": { "__bigint__": "8918748" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238487376296863" } + }, + { + "instructions": { "__bigint__": "8918721" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238487405418638" } + }, + { + "instructions": { "__bigint__": "8915270" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238487428125618" } + }, + { + "instructions": { "__bigint__": "8913636" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238487460233267" } + }, + { + "instructions": { "__bigint__": "8914892" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238487684277791" } + }, + { + "instructions": { "__bigint__": "8917028" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238487709772223" } + }, + { + "instructions": { "__bigint__": "8920477" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238487736198838" } + }, + { + "instructions": { "__bigint__": "8914540" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238487761318410" } + }, + { + "instructions": { "__bigint__": "8917166" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238487989385146" } + }, + { + "instructions": { "__bigint__": "8912776" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488010029350" } + }, + { + "instructions": { "__bigint__": "8915851" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488034248024" } + }, + { + "instructions": { "__bigint__": "8920339" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488061211912" } + }, + { + "instructions": { "__bigint__": "8921231" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488089711271" } + }, + { + "instructions": { "__bigint__": "8916790" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488321351435" } + }, + { + "instructions": { "__bigint__": "8919536" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488340505873" } + }, + { + "instructions": { "__bigint__": "8916162" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488360895022" } + }, + { + "instructions": { "__bigint__": "8918066" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488387785255" } + }, + { + "instructions": { "__bigint__": "8920655" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488618569748" } + }, + { + "instructions": { "__bigint__": "8924900" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488641307752" } + }, + { + "instructions": { "__bigint__": "8914858" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488663848674" } + }, + { + "instructions": { "__bigint__": "8912960" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488684955597" } + }, + { + "instructions": { "__bigint__": "8917739" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488707060286" } + }, + { + "instructions": { "__bigint__": "8915973" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488933529471" } + }, + { + "instructions": { "__bigint__": "8917324" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488963266291" } + }, + { + "instructions": { "__bigint__": "8913802" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238488989172484" } + }, + { + "instructions": { "__bigint__": "8913016" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238489020346168" } + }, + { + "instructions": { "__bigint__": "8910839" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238489254374319" } + }, + { + "instructions": { "__bigint__": "8913762" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238489276547570" } + }, + { + "instructions": { "__bigint__": "8911326" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238489299659068" } + }, + { + "instructions": { "__bigint__": "8928879" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238489325741868" } + }, + { + "instructions": { "__bigint__": "8925210" }, + "method_name": "buyHoneydew", + "timestamp": { "__bigint__": "1730238489352890694" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/benchmarks.md new file mode 100644 index 0000000000..3d34be3314 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/benchmarks.md @@ -0,0 +1,129 @@ +# Benchmarks for robust_imports + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | --------------------- | ------------- | ------------- | ------------- | ----------------- | +| 0 | separateArilsFromPith | 6_251_005_422 | 4_900_992_168 | $0.0065167023 | $6_516.70 | +| 1 | buyHoneydew | 8_903_923 | 4_151_569 | $0.0000055202 | $5.52 | +| 2 | buyHoneydew | 8_904_036 | 4_151_614 | $0.0000055203 | $5.52 | +| 3 | buyHoneydew | 8_904_061 | 4_151_624 | $0.0000055203 | $5.52 | +| 4 | buyHoneydew | 8_904_035 | 4_151_614 | $0.0000055203 | $5.52 | +| 5 | buyHoneydew | 8_903_790 | 4_151_516 | $0.0000055201 | $5.52 | +| 6 | buyHoneydew | 8_903_765 | 4_151_506 | $0.0000055201 | $5.52 | +| 7 | buyHoneydew | 8_903_789 | 4_151_515 | $0.0000055201 | $5.52 | +| 8 | buyHoneydew | 8_903_766 | 4_151_506 | $0.0000055201 | $5.52 | +| 9 | buyHoneydew | 8_903_453 | 4_151_381 | $0.0000055200 | $5.51 | +| 10 | buyHoneydew | 8_903_428 | 4_151_371 | $0.0000055200 | $5.51 | +| 11 | buyHoneydew | 8_903_454 | 4_151_381 | $0.0000055200 | $5.51 | +| 12 | buyHoneydew | 8_903_428 | 4_151_371 | $0.0000055200 | $5.51 | +| 13 | buyHoneydew | 8_903_455 | 4_151_382 | $0.0000055200 | $5.51 | +| 14 | buyHoneydew | 8_903_428 | 4_151_371 | $0.0000055200 | $5.51 | +| 15 | buyHoneydew | 8_903_453 | 4_151_381 | $0.0000055200 | $5.51 | +| 16 | buyHoneydew | 8_903_429 | 4_151_371 | $0.0000055200 | $5.51 | +| 17 | buyHoneydew | 8_903_771 | 4_151_508 | $0.0000055201 | $5.52 | +| 18 | buyHoneydew | 8_903_772 | 4_151_508 | $0.0000055201 | $5.52 | +| 19 | buyHoneydew | 8_904_089 | 4_151_635 | $0.0000055203 | $5.52 | +| 20 | buyHoneydew | 8_903_859 | 4_151_543 | $0.0000055202 | $5.52 | +| 21 | buyHoneydew | 8_903_254 | 4_151_301 | $0.0000055199 | $5.51 | +| 22 | buyHoneydew | 8_893_386 | 4_147_354 | $0.0000055146 | $5.51 | +| 23 | buyHoneydew | 8_878_242 | 4_141_296 | $0.0000055066 | $5.50 | +| 24 | buyHoneydew | 8_879_057 | 4_141_622 | $0.0000055070 | $5.50 | +| 25 | buyHoneydew | 8_901_622 | 4_150_648 | $0.0000055190 | $5.51 | +| 26 | buyHoneydew | 8_891_033 | 4_146_413 | $0.0000055134 | $5.51 | +| 27 | buyHoneydew | 8_892_361 | 4_146_944 | $0.0000055141 | $5.51 | +| 28 | buyHoneydew | 8_903_359 | 4_151_343 | $0.0000055199 | $5.51 | +| 29 | buyHoneydew | 8_912_758 | 4_155_103 | $0.0000055249 | $5.52 | +| 30 | buyHoneydew | 8_910_591 | 4_154_236 | $0.0000055238 | $5.52 | +| 31 | buyHoneydew | 8_914_810 | 4_155_924 | $0.0000055260 | $5.52 | +| 32 | buyHoneydew | 8_916_434 | 4_156_573 | $0.0000055269 | $5.52 | +| 33 | setStable | 2_057_127 | 1_412_850 | $0.0000018786 | $1.87 | +| 34 | buyHoneydew | 8_915_518 | 4_156_207 | $0.0000055264 | $5.52 | +| 35 | buyHoneydew | 8_915_775 | 4_156_310 | $0.0000055265 | $5.52 | +| 36 | buyHoneydew | 8_913_331 | 4_155_332 | $0.0000055252 | $5.52 | +| 37 | buyHoneydew | 8_915_468 | 4_156_187 | $0.0000055264 | $5.52 | +| 38 | buyHoneydew | 8_914_668 | 4_155_867 | $0.0000055259 | $5.52 | +| 39 | buyHoneydew | 8_913_430 | 4_155_372 | $0.0000055253 | $5.52 | +| 40 | buyHoneydew | 8_913_494 | 4_155_397 | $0.0000055253 | $5.52 | +| 41 | buyHoneydew | 8_908_963 | 4_153_585 | $0.0000055229 | $5.52 | +| 42 | buyHoneydew | 8_912_063 | 4_154_825 | $0.0000055245 | $5.52 | +| 43 | buyHoneydew | 8_916_031 | 4_156_412 | $0.0000055267 | $5.52 | +| 44 | buyHoneydew | 8_918_107 | 4_157_242 | $0.0000055278 | $5.52 | +| 45 | buyHoneydew | 8_918_920 | 4_157_568 | $0.0000055282 | $5.52 | +| 46 | buyHoneydew | 8_921_717 | 4_158_686 | $0.0000055297 | $5.52 | +| 47 | buyHoneydew | 8_919_659 | 4_157_863 | $0.0000055286 | $5.52 | +| 48 | buyHoneydew | 8_921_796 | 4_158_718 | $0.0000055297 | $5.52 | +| 49 | buyHoneydew | 8_922_035 | 4_158_814 | $0.0000055299 | $5.52 | +| 50 | buyHoneydew | 8_922_640 | 4_159_056 | $0.0000055302 | $5.53 | +| 51 | buyHoneydew | 8_922_225 | 4_158_890 | $0.0000055300 | $5.52 | +| 52 | buyHoneydew | 8_919_777 | 4_157_910 | $0.0000055286 | $5.52 | +| 53 | buyHoneydew | 8_915_397 | 4_156_158 | $0.0000055263 | $5.52 | +| 54 | buyHoneydew | 8_919_860 | 4_157_944 | $0.0000055287 | $5.52 | +| 55 | buyHoneydew | 8_925_984 | 4_160_393 | $0.0000055319 | $5.53 | +| 56 | buyHoneydew | 8_918_311 | 4_157_324 | $0.0000055279 | $5.52 | +| 57 | buyHoneydew | 8_926_067 | 4_160_426 | $0.0000055320 | $5.53 | +| 58 | buyHoneydew | 8_925_758 | 4_160_303 | $0.0000055318 | $5.53 | +| 59 | buyHoneydew | 8_926_094 | 4_160_437 | $0.0000055320 | $5.53 | +| 60 | buyHoneydew | 8_925_841 | 4_160_336 | $0.0000055319 | $5.53 | +| 61 | buyHoneydew | 8_924_414 | 4_159_765 | $0.0000055311 | $5.53 | +| 62 | buyHoneydew | 8_919_216 | 4_157_686 | $0.0000055284 | $5.52 | +| 63 | buyHoneydew | 8_921_602 | 4_158_640 | $0.0000055296 | $5.52 | +| 64 | buyHoneydew | 8_920_470 | 4_158_188 | $0.0000055290 | $5.52 | +| 65 | buyHoneydew | 8_925_709 | 4_160_283 | $0.0000055318 | $5.53 | +| 66 | buyHoneydew | 8_924_384 | 4_159_753 | $0.0000055311 | $5.53 | +| 67 | buyHoneydew | 8_924_775 | 4_159_910 | $0.0000055313 | $5.53 | +| 68 | buyHoneydew | 8_920_843 | 4_158_337 | $0.0000055292 | $5.52 | +| 69 | buyHoneydew | 8_923_304 | 4_159_321 | $0.0000055305 | $5.53 | +| 70 | buyHoneydew | 8_922_484 | 4_158_993 | $0.0000055301 | $5.53 | +| 71 | buyHoneydew | 8_922_908 | 4_159_163 | $0.0000055303 | $5.53 | +| 72 | buyHoneydew | 8_922_955 | 4_159_182 | $0.0000055303 | $5.53 | +| 73 | buyHoneydew | 8_923_103 | 4_159_241 | $0.0000055304 | $5.53 | +| 74 | buyHoneydew | 8_922_411 | 4_158_964 | $0.0000055300 | $5.53 | +| 75 | buyHoneydew | 8_918_748 | 4_157_499 | $0.0000055281 | $5.52 | +| 76 | buyHoneydew | 8_918_721 | 4_157_488 | $0.0000055281 | $5.52 | +| 77 | buyHoneydew | 8_915_270 | 4_156_108 | $0.0000055263 | $5.52 | +| 78 | buyHoneydew | 8_913_636 | 4_155_454 | $0.0000055254 | $5.52 | +| 79 | buyHoneydew | 8_914_892 | 4_155_956 | $0.0000055261 | $5.52 | +| 80 | buyHoneydew | 8_917_028 | 4_156_811 | $0.0000055272 | $5.52 | +| 81 | buyHoneydew | 8_920_477 | 4_158_190 | $0.0000055290 | $5.52 | +| 82 | buyHoneydew | 8_914_540 | 4_155_816 | $0.0000055259 | $5.52 | +| 83 | buyHoneydew | 8_917_166 | 4_156_866 | $0.0000055273 | $5.52 | +| 84 | buyHoneydew | 8_912_776 | 4_155_110 | $0.0000055249 | $5.52 | +| 85 | buyHoneydew | 8_915_851 | 4_156_340 | $0.0000055266 | $5.52 | +| 86 | buyHoneydew | 8_920_339 | 4_158_135 | $0.0000055289 | $5.52 | +| 87 | buyHoneydew | 8_921_231 | 4_158_492 | $0.0000055294 | $5.52 | +| 88 | buyHoneydew | 8_916_790 | 4_156_716 | $0.0000055271 | $5.52 | +| 89 | buyHoneydew | 8_919_536 | 4_157_814 | $0.0000055285 | $5.52 | +| 90 | buyHoneydew | 8_916_162 | 4_156_464 | $0.0000055267 | $5.52 | +| 91 | buyHoneydew | 8_918_066 | 4_157_226 | $0.0000055277 | $5.52 | +| 92 | buyHoneydew | 8_920_655 | 4_158_262 | $0.0000055291 | $5.52 | +| 93 | buyHoneydew | 8_924_900 | 4_159_960 | $0.0000055314 | $5.53 | +| 94 | buyHoneydew | 8_914_858 | 4_155_943 | $0.0000055260 | $5.52 | +| 95 | buyHoneydew | 8_912_960 | 4_155_184 | $0.0000055250 | $5.52 | +| 96 | buyHoneydew | 8_917_739 | 4_157_095 | $0.0000055276 | $5.52 | +| 97 | buyHoneydew | 8_915_973 | 4_156_389 | $0.0000055266 | $5.52 | +| 98 | buyHoneydew | 8_917_324 | 4_156_929 | $0.0000055273 | $5.52 | +| 99 | buyHoneydew | 8_913_802 | 4_155_520 | $0.0000055255 | $5.52 | +| 100 | buyHoneydew | 8_913_016 | 4_155_206 | $0.0000055251 | $5.52 | +| 101 | buyHoneydew | 8_910_839 | 4_154_335 | $0.0000055239 | $5.52 | +| 102 | buyHoneydew | 8_913_762 | 4_155_504 | $0.0000055254 | $5.52 | +| 103 | buyHoneydew | 8_911_326 | 4_154_530 | $0.0000055242 | $5.52 | +| 104 | buyHoneydew | 8_928_879 | 4_161_551 | $0.0000055335 | $5.53 | +| 105 | buyHoneydew | 8_925_210 | 4_160_084 | $0.0000055315 | $5.53 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/simple_erc20/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/benchmarks.json new file mode 100644 index 0000000000..dee6b74fb4 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/benchmarks.json @@ -0,0 +1,20 @@ +{ + "simple_erc20": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "2179897" }, + "method_name": "initializeSupply", + "timestamp": { "__bigint__": "1730238476036377182" } + }, + { + "instructions": { "__bigint__": "1806970" }, + "method_name": "transfer", + "timestamp": { "__bigint__": "1730238477996291609" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/benchmarks.md new file mode 100644 index 0000000000..6b67f6fd90 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/benchmarks.md @@ -0,0 +1,25 @@ +# Benchmarks for simple_erc20 + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ---------------- | ------------ | --------- | ------------- | ----------------- | +| 0 | initializeSupply | 2_179_897 | 1_461_958 | $0.0000019439 | $1.94 | +| 1 | transfer | 1_806_970 | 1_312_788 | $0.0000017456 | $1.74 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/simple_user_accounts/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/benchmarks.json new file mode 100644 index 0000000000..a9ace706de --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/benchmarks.json @@ -0,0 +1,15 @@ +{ + "simple_user_accounts": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "3939857" }, + "method_name": "createUser", + "timestamp": { "__bigint__": "1730238476810161354" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/benchmarks.md new file mode 100644 index 0000000000..b80588d24a --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/benchmarks.md @@ -0,0 +1,24 @@ +# Benchmarks for simple_user_accounts + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ----------- | ------------ | --------- | ------------- | ----------------- | +| 0 | createUser | 3_939_857 | 2_165_942 | $0.0000028800 | $2.87 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/tuple_types/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/benchmarks.json new file mode 100644 index 0000000000..7d7f0ad53d --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/benchmarks.json @@ -0,0 +1,6 @@ +{ + "tuple_types": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/benchmarks.md new file mode 100644 index 0000000000..d970ae03e0 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for tuple_types + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/update/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/update/benchmarks.json new file mode 100644 index 0000000000..62244c9507 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/update/benchmarks.json @@ -0,0 +1,15 @@ +{ + "update": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { + "version": "0.25.0", + "benchmarks": [ + { + "instructions": { "__bigint__": "1298570" }, + "method_name": "simpleUpdate", + "timestamp": { "__bigint__": "1730238476277827005" } + } + ] + } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/update/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/update/benchmarks.md new file mode 100644 index 0000000000..0d0fa92070 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/update/benchmarks.md @@ -0,0 +1,24 @@ +# Benchmarks for update + +## Current benchmarks Azle version: 0.25.0 + +| Id | Method Name | Instructions | Cycles | USD | USD/Million Calls | +| --- | ------------ | ------------ | --------- | ------------- | ----------------- | +| 0 | simpleUpdate | 1_298_570 | 1_109_428 | $0.0000014752 | $1.47 | + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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/functional_syntax/vanilla_js/benchmarks.json b/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/benchmarks.json new file mode 100644 index 0000000000..69cecc2a37 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/benchmarks.json @@ -0,0 +1,6 @@ +{ + "vanilla_js": { + "previous": { "version": "0.25.0", "benchmarks": [] }, + "current": { "version": "0.25.0", "benchmarks": [] } + } +} diff --git a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/benchmarks.md b/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/benchmarks.md new file mode 100644 index 0000000000..f30a3e1322 --- /dev/null +++ b/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/benchmarks.md @@ -0,0 +1,22 @@ +# Benchmarks for vanilla_js + +## Current benchmarks Azle version: 0.25.0 + +No benchmarks reported + +## Baseline benchmarks Azle version: 0.25.0 + +No benchmarks reported + +--- + +**Note on calculations:** + +- Cycles are calculated using the formula: base_fee + (per_instruction_fee \* number_of_instructions) + (additional_fee_per_billion \* floor(number_of_instructions / 1_000_000_000)) +- base_fee: 590_000 cycles +- per_instruction_fee: 0.4 cycles +- additional_fee_per_billion: 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.329670 (as of October 24, 2024) + +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).