Skip to content

Commit

Permalink
Update compiler/vm/src/heap/object_inline/int.rs
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 d8f568b commit 400deca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/vm/src/heap/object_inline/int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl InlineInt {
// One 1 is necessary for the sign.
i64::BITS - lhs.leading_ones() + 1
} else {
i64::BITS - lhs.leading_zeros()
lhs.bit_length()
};

#[allow(clippy::cast_possible_truncation)]
Expand Down

2 comments on commit 400deca

@jwbot
Copy link
Collaborator

@jwbot jwbot commented on 400deca 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: 400deca Previous: de2cc9e Ratio
Time: Compiler/hello_world 44300520 ns/iter (± 449257) 26462601 ns/iter (± 568109) 1.67
Time: Compiler/fibonacci 3497440761 ns/iter (± 7072126) 191761450 ns/iter (± 1627935) 18.24
Time: VM Runtime/hello_world 55650 ns/iter (± 12409) 67151 ns/iter (± 10242) 0.83

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

@jwbot
Copy link
Collaborator

@jwbot jwbot commented on 400deca 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: 400deca Previous: de2cc9e Ratio
Time: Compiler/fibonacci 3497440761 ns/iter (± 7072126) 191761450 ns/iter (± 1627935) 18.24

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

Please sign in to comment.