Skip to content

Commit

Permalink
Update packages/Builtins/_.candy
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Wanke <[email protected]>
  • Loading branch information
MarcelGarus and JonasWanke authored Oct 26, 2023
1 parent d2c3f05 commit d8f568b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/Builtins/_.candy
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ intBitLength value :=
# intBitLength -3 => 2
# ```
needs (value | typeIs Int)
## Ensure `value` is non-negative.
needs (value | ✨.intAdd 1 | ✨.intCompareTo 0 | ✨.equals Greater)
needs
(value | ✨.intAdd 1 | ✨.intCompareTo 0 | ✨.equals Greater)
"Value must be non-negative"
✨.intBitLength value

intBitwiseAnd a b :=
Expand Down

2 comments on commit d8f568b

@jwbot
Copy link
Collaborator

@jwbot jwbot commented on d8f568b Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiler

Benchmark suite Current: d8f568b Previous: de2cc9e Ratio
Time: Compiler/hello_world 39573109 ns/iter (± 813112) 26462601 ns/iter (± 568109) 1.50
Time: Compiler/fibonacci 2925700592 ns/iter (± 3391860) 191761450 ns/iter (± 1627935) 15.26
Time: VM Runtime/hello_world 50950 ns/iter (± 12083) 67151 ns/iter (± 10242) 0.76

This comment was automatically generated by workflow using github-action-benchmark.

@jwbot
Copy link
Collaborator

@jwbot jwbot commented on d8f568b Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Compiler'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: d8f568b Previous: de2cc9e Ratio
Time: Compiler/fibonacci 2925700592 ns/iter (± 3391860) 191761450 ns/iter (± 1627935) 15.26

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.