Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.98 KB

benchmarks.md

File metadata and controls

30 lines (22 loc) · 1.98 KB

Benchmarks for backend

Current benchmarks Azle version: 0.25.0

Id Method Name Instructions Cycles USD USD/Million Calls Change
0 init 8_135_491_182 6_454_786_472 $0.0085827359 $8_582.73 -774_092
1 http_request_update 53_810_066 22_114_026 $0.0000294044 $29.40 +11_339

Baseline benchmarks Azle version: 0.25.0

Id Method Name Instructions Cycles USD USD/Million Calls
0 init 8_136_265_274 6_455_096_109 $0.0085831476 $8_583.14
1 http_request_update 53_798_727 22_109_490 $0.0000293983 $29.39
2 http_request_update 47_468_265 19_577_306 $0.0000260314 $26.03
3 http_request_update 47_474_297 19_579_718 $0.0000260346 $26.03

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. For the most current fee information, please check the official documentation.