fix(wasi): date clock resolution and system datetime support - #13687
fix(wasi): date clock resolution and system datetime support#13687eduardomourar wants to merge 1 commit into
Conversation
|
GNU testsuite comparison: |
date implements get_clock_resolution via libc::clock_getres (rustix's excludes WASI) and set_system_datetime for WASI, the latter reporting "not supported" since the sandbox has no wall-clock-set syscall.
f767364 to
2321086
Compare
Merging this PR will improve performance by 3.49%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | Simulation | sort_long_line[10000] |
1.2 ms | 1.1 ms | +3.68% |
| ⚡ | Simulation | numfmt_to_si_precision[10000] |
93.3 ms | 90.3 ms | +3.3% |
Tip
Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.
Comparing eduardomourar:wasi-date-fixes (2321086) with main (bad4676)2
Footnotes
-
46 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
-
No successful run was found on
main(0c8a3c7) during the generation of this report, so bad4676 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
date implements get_clock_resolution via libc::clock_getres (rustix's excludes WASI) and set_system_datetime for WASI, the latter reporting "not supported" since the sandbox has no wall-clock-set syscall.