Skip to content

impliment iroot and friends for native julia. Much faster for native types#25

Merged
oscardssmith merged 2 commits into
mainfrom
os/native-iroot-and-friends
Jul 12, 2026
Merged

impliment iroot and friends for native julia. Much faster for native types#25
oscardssmith merged 2 commits into
mainfrom
os/native-iroot-and-friends

Conversation

@oscardssmith

Copy link
Copy Markdown
Member
Function Type Before (ns) After (ns) Speedup
iroot(x, 3) Int32 127.1 13.9 9.2×
iroot(x, 7) Int32 97.8 14.7 6.6×
rootrem(x, 3) Int32 91.7 15.5 5.9×
ispower (non-power) Int32 98.3 51.8 1.9×
ispower (perfect power) Int32 137.6 50.7 2.7×
find_exponent (non-power) Int32 2186.4 112.6 19.4×
find_exponent (perfect power) Int32 898.8 64.6 13.9×
iroot(x, 3) Int64 163.7 13.8 11.9×
iroot(x, 7) Int64 111.6 14.7 7.6×
rootrem(x, 3) Int64 124.7 15.9 7.9×
ispower (non-power) Int64 102.4 96.1 1.1×
ispower (perfect power) Int64 165.3 24.0 6.9×
find_exponent (non-power) Int64 5859.7 219.0 26.8×
find_exponent (perfect power) Int64 2639.6 113.7 23.2×
iroot(x, 3) Int128 210.4 37.8 5.6×
iroot(x, 7) Int128 186.0 38.2 4.9×
rootrem(x, 3) Int128 178.5 40.4 4.4×
ispower (non-power) Int128 116.3 151.6 0.8×
ispower (perfect power) Int128 212.4 9.4 22.6×
find_exponent (non-power) Int128 15540.0 432.0 36.0×
find_exponent (perfect power) Int128 6262.0 174.8 35.8×

@codecov

codecov Bot commented Jul 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@edff333). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #25   +/-   ##
=======================================
  Coverage        ?   95.36%           
=======================================
  Files           ?        1           
  Lines           ?      151           
  Branches        ?        0           
=======================================
  Hits            ?      144           
  Misses          ?        7           
  Partials        ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@oscardssmith oscardssmith merged commit 22c0e7e into main Jul 12, 2026
8 checks passed
@oscardssmith oscardssmith deleted the os/native-iroot-and-friends branch July 12, 2026 20:49
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