Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

sum_1_100.fz


ex =>

  time := 1000

  # sui = subject/system under investigation
  sui =>
    (1..100).fold i32.type.sum

  say "iterations per s: {bench (() -> sui; unit) ex.this.time}"
last changed: 2023-11-14