Skip to content

Conversation

@nobu
Copy link
Member

@nobu nobu commented Oct 17, 2025

Add CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
But skip such low precision clocks to measure performances.

@launchable-app
Copy link

launchable-app bot commented Oct 17, 2025

2/62455 Tests Failed

test/rubygems/test_gem_remote_fetcher_local_ssl_server.rb#test_do_not_allow_insecure_ssl_connection_by_default

test/ruby/test_iseq.rb#test_parent_iseq_mark
Error:
TestISeq#test_parent_iseq_mark:
Test::Unit::ProxyError: execution of Test::Unit::CoreAssertions#assert_separately expired timeout (20 sec)
pid 5576 exit 1
| �[7;1m2580:1760676369.222:ab14:�[m<error>
| BAgw
| �[7;1m2580:1760676369.222:ab14:�[m</error>
| �[7;1m2580:1760676369.222:ab14:�[massertions=1
| 

    D:/a/ruby/ruby/src/test/ruby/test_iseq.rb:368:in 'TestISeq#test_parent_iseq_mark'

[-> View Test suite health in main branch]

nobu added 2 commits October 17, 2025 13:21
Add `CLOCK_PROCESS_CPUTIME_ID` and `CLOCK_THREAD_CPUTIME_ID`.
@nobu nobu force-pushed the win32-clockid branch 2 times, most recently from fd078c4 to 43bfc27 Compare October 17, 2025 04:22
@nobu nobu enabled auto-merge (rebase) October 17, 2025 05:25
@nobu nobu merged commit 5a23716 into ruby:master Oct 17, 2025
89 of 91 checks passed
@nobu nobu deleted the win32-clockid branch October 17, 2025 05:52
tompng added a commit to tompng/test-unit-ruby-core that referenced this pull request Nov 9, 2025
New low-resolution-clock is added in windows.
Sync with ruby/ruby#14866 to use precise clock in performance measurement.
tompng added a commit to tompng/test-unit-ruby-core that referenced this pull request Nov 9, 2025
Low resolution-clock is added in windows, but it shouldn't be used in assert_linear_performance.
ruby/ruby's core_assertion.rb selects clock that has enough resolution.
hsbt added a commit to ruby/test-unit-ruby-core that referenced this pull request Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant