Skip to content

Simd revisited#4742

Open
shai-almog wants to merge 4 commits intomasterfrom
simd-revisite
Open

Simd revisited#4742
shai-almog wants to merge 4 commits intomasterfrom
simd-revisite

Conversation

@shai-almog
Copy link
Copy Markdown
Collaborator

No description provided.

@shai-almog shai-almog changed the title Simd revisite Simd revisited Apr 13, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 13, 2026

✅ Continuous Quality Report

Test & Coverage

Static Analysis

Generated automatically by the PR CI workflow.

@shai-almog
Copy link
Copy Markdown
Collaborator Author

shai-almog commented Apr 13, 2026

Compared 36 screenshots: 36 matched.
✅ Native iOS screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 170 seconds

Detailed Performance Metrics

Metric Duration
Simulator Boot 15000 ms
Simulator Boot (Run) 1000 ms
App Install 2000 ms
App Launch 7000 ms
Test Execution 198000 ms
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 native encode 1395.000 ms
Base64 CN1 encode 1888.000 ms
Base64 encode ratio (CN1/native) 1.353x (35.3% slower)
Base64 native decode 1105.000 ms
Base64 CN1 decode 1841.000 ms
Base64 decode ratio (CN1/native) 1.666x (66.6% slower)
Base64 SIMD encode 1365.000 ms
Base64 encode ratio (SIMD/native) 0.978x (2.2% faster)
Base64 encode ratio (SIMD/CN1) 0.723x (27.7% faster)
Base64 SIMD decode 1089.000 ms
Base64 decode ratio (SIMD/native) 0.986x (1.4% faster)
Base64 decode ratio (SIMD/CN1) 0.592x (40.8% faster)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 13, 2026

✅ ByteCodeTranslator Quality Report

Test & Coverage

  • Tests: 381 total, 0 failed, 2 skipped

Benchmark Results

  • Execution Time: 10823 ms

  • Hotspots (Top 20 sampled methods):

    • 22.82% java.lang.String.indexOf (437 samples)
    • 17.91% com.codename1.tools.translator.Parser.isMethodUsed (343 samples)
    • 16.76% java.util.ArrayList.indexOf (321 samples)
    • 11.07% com.codename1.tools.translator.Parser.addToConstantPool (212 samples)
    • 4.65% java.lang.Object.hashCode (89 samples)
    • 2.04% java.lang.System.identityHashCode (39 samples)
    • 1.51% com.codename1.tools.translator.ByteCodeClass.markDependent (29 samples)
    • 1.36% com.codename1.tools.translator.ByteCodeClass.fillVirtualMethodTable (26 samples)
    • 1.36% java.lang.StringBuilder.append (26 samples)
    • 1.31% com.codename1.tools.translator.ByteCodeClass.calcUsedByNative (25 samples)
    • 0.99% java.lang.StringCoding.encode (19 samples)
    • 0.89% com.codename1.tools.translator.BytecodeMethod.optimize (17 samples)
    • 0.78% com.codename1.tools.translator.Parser.generateClassAndMethodIndexHeader (15 samples)
    • 0.68% com.codename1.tools.translator.BytecodeMethod.isMethodUsedByNative (13 samples)
    • 0.57% com.codename1.tools.translator.ByteCodeClass.isDefaultInterfaceMethod (11 samples)
    • 0.52% com.codename1.tools.translator.Parser.cullMethods (10 samples)
    • 0.47% com.codename1.tools.translator.BytecodeMethod.appendCMethodPrefix (9 samples)
    • 0.47% com.codename1.tools.translator.Parser.writeOutput (9 samples)
    • 0.47% java.util.ArrayList$Itr.next (9 samples)
    • 0.47% sun.nio.fs.UnixNativeDispatcher.open0 (9 samples)
  • ⚠️ Coverage report not generated.

Static Analysis

  • ✅ SpotBugs: no findings (report was not generated by the build).
  • ⚠️ PMD report not generated.
  • ⚠️ Checkstyle report not generated.

Generated automatically by the PR CI workflow.

@shai-almog
Copy link
Copy Markdown
Collaborator Author

shai-almog commented Apr 13, 2026

Compared 37 screenshots: 37 matched.

Native Android coverage

  • 📊 Line coverage: 7.83% (4131/52730 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 6.15% (20422/332268), branch 2.95% (946/32048), complexity 3.65% (1121/30673), method 6.42% (919/14314), class 10.68% (203/1900)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/730 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

✅ Native Android screenshot tests passed.

Native Android coverage

  • 📊 Line coverage: 7.83% (4131/52730 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 6.15% (20422/332268), branch 2.95% (946/32048), complexity 3.65% (1121/30673), method 6.42% (919/14314), class 10.68% (203/1900)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/730 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

Benchmark Results

Detailed Performance Metrics

Metric Duration
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 native encode 877.000 ms
Base64 CN1 encode 118.000 ms
Base64 encode ratio (CN1/native) 0.135x (86.5% faster)
Base64 native decode 781.000 ms
Base64 CN1 decode 263.000 ms
Base64 decode ratio (CN1/native) 0.337x (66.3% faster)

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