Skip to content

Conversation

coolreader18
Copy link
Contributor

@coolreader18 coolreader18 commented May 17, 2024

The millis/micros/nanos cases I don't feel as strongly about, but I see no reason why Duration::from_secs should call into Duration::new - that's just creating unnecessary work for the inlining and DCE passes.

@rustbot
Copy link
Collaborator

rustbot commented May 17, 2024

r? @jhpratt

rustbot has assigned @jhpratt.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels May 17, 2024
@jhpratt
Copy link
Member

jhpratt commented May 18, 2024

I prefer this change for clarity even if there is no performance impact. I don't foresee a negative performance change from this, so I'm going to merge it.

@bors r+ rollup=iffy

@bors
Copy link
Collaborator

bors commented May 18, 2024

📌 Commit 53b3177 has been approved by jhpratt

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 18, 2024
@bors
Copy link
Collaborator

bors commented May 18, 2024

⌛ Testing commit 53b3177 with merge 94be5ab...

@bors
Copy link
Collaborator

bors commented May 18, 2024

☀️ Test successful - checks-actions
Approved by: jhpratt
Pushing 94be5ab to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label May 18, 2024
@bors bors merged commit 94be5ab into rust-lang:master May 18, 2024
@rustbot rustbot added this to the 1.80.0 milestone May 18, 2024
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (94be5ab): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results (primary -6.6%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-6.6% [-6.6%, -6.6%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -6.6% [-6.6%, -6.6%] 1

Cycles

Results (secondary 1.5%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
3.5% [2.0%, 6.3%] 5
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.4% [-4.1%, -2.8%] 2
All ❌✅ (primary) - - 0

Binary size

Results (primary -0.0%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.0% [0.0%, 0.0%] 2
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.1% [-0.1%, -0.1%] 3
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.0% [-0.1%, 0.0%] 5

Bootstrap: 668.38s -> 668.437s (0.01%)
Artifact size: 316.17 MiB -> 316.01 MiB (-0.05%)

@coolreader18 coolreader18 deleted the inline-duration-new branch May 20, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants