Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[D] Manual installation and v2 version #429

Merged
merged 1 commit into from
Nov 14, 2023
Merged

[D] Manual installation and v2 version #429

merged 1 commit into from
Nov 14, 2023

Conversation

cyrusmsk
Copy link
Contributor

Added separate folder for d_v2 version. Based on SWAR optimization approach.
Added manual installation into Dockerfile - installed from official Release from LDC's GitHub page.

@jinyus jinyus merged commit 1ce2b7b into jinyus:main Nov 14, 2023
@jinyus
Copy link
Owner

jinyus commented Nov 14, 2023

Good and bad news. The regular D is still seeing perf degradation but d v2 is back to performing normal. Don't know what to make of it.

D:

D:

        Benchmark 1: ./related
        Processing time (w/o IO): 32.589ms
        Processing time (w/o IO): 32.208ms
        Processing time (w/o IO): 32.22ms
        Processing time (w/o IO): 32.371ms
        Processing time (w/o IO): 33.591ms
        Processing time (w/o IO): 32.07ms
        Processing time (w/o IO): 31.84ms
        Processing time (w/o IO): 32.033ms
        Processing time (w/o IO): 32.583ms
        Processing time (w/o IO): 32.477ms
        Processing time (w/o IO): 32.306ms
        Processing time (w/o IO): 32.533ms
        Processing time (w/o IO): 32.628ms
          Time (mean ± σ):     110.2 ms ±   1.4 ms    [User: 103.4 ms, System: 8.0 ms]
          Range (min … max):   109.5 ms … 114.0 ms    10 runs
         
D:

        Benchmark 1: ./related
        Processing time (w/o IO): 446.696ms
        Processing time (w/o IO): 442.511ms
        Processing time (w/o IO): 441.599ms
          Time (mean ± σ):     737.2 ms ±   2.2 ms    [User: 719.4 ms, System: 21.7 ms]
          Range (min … max):   735.7 ms … 738.8 ms    2 runs
         
D:

        Benchmark 1: ./related
        Processing time (w/o IO): 3846.21ms
        Processing time (w/o IO): 3857.77ms
        Processing time (w/o IO): 3852.69ms
          Time (mean ± σ):      4.818 s ±  0.005 s    [User: 4.701 s, System: 0.123 s]
          Range (min … max):    4.814 s …  4.821 s    2 runs

D V2:

D_v2:

        Benchmark 1: ./related
        Processing time (w/o IO): 21.275ms
        Processing time (w/o IO): 21.568ms
        Processing time (w/o IO): 21.736ms
        Processing time (w/o IO): 21.665ms
        Processing time (w/o IO): 21.698ms
        Processing time (w/o IO): 21.651ms
        Processing time (w/o IO): 21.67ms
        Processing time (w/o IO): 21.684ms
        Processing time (w/o IO): 21.678ms
        Processing time (w/o IO): 21.519ms
        Processing time (w/o IO): 21.183ms
        Processing time (w/o IO): 22.115ms
        Processing time (w/o IO): 21.502ms
          Time (mean ± σ):     100.1 ms ±   1.1 ms    [User: 89.5 ms, System: 11.8 ms]
          Range (min … max):    98.7 ms … 102.5 ms    10 runs
         
D_v2:

        Benchmark 1: ./related
        Processing time (w/o IO): 257.164ms
        Processing time (w/o IO): 258.541ms
        Processing time (w/o IO): 257.453ms
          Time (mean ± σ):     560.0 ms ±   0.1 ms    [User: 543.4 ms, System: 21.0 ms]
          Range (min … max):   560.0 ms … 560.1 ms    2 runs
         
D_v2:

        Benchmark 1: ./related
        Processing time (w/o IO): 2133.03ms
        Processing time (w/o IO): 2133.14ms
        Processing time (w/o IO): 2134.93ms
          Time (mean ± σ):      3.096 s ±  0.008 s    [User: 3.002 s, System: 0.101 s]
          Range (min … max):    3.090 s …  3.101 s    2 runs

@jinyus
Copy link
Owner

jinyus commented Nov 14, 2023

I just tested LDC 1.34.0-beta1 and the perf is back.

D:

Benchmark 1: ./related
Processing time (w/o IO): 25.345ms
Processing time (w/o IO): 30.273ms
Processing time (w/o IO): 25.05ms
Processing time (w/o IO): 25.76ms
Processing time (w/o IO): 26.914ms
Processing time (w/o IO): 25.244ms
Processing time (w/o IO): 25.623ms
Processing time (w/o IO): 25.592ms
Processing time (w/o IO): 25.585ms
Processing time (w/o IO): 25.231ms
Processing time (w/o IO): 25.269ms
Processing time (w/o IO): 25.198ms
Processing time (w/o IO): 25.011ms
  Time (mean ± σ):     104.2 ms ±   0.9 ms    [User: 96.8 ms, System: 8.8 ms]
  Range (min … max):   102.2 ms … 105.4 ms    10 runs

D:

Benchmark 1: ./related
Processing time (w/o IO): 327.483ms
Processing time (w/o IO): 328.742ms
Processing time (w/o IO): 327.744ms
Processing time (w/o IO): 327.229ms
Processing time (w/o IO): 327.355ms
Processing time (w/o IO): 327.828ms
Processing time (w/o IO): 327.954ms
Processing time (w/o IO): 331.604ms
Processing time (w/o IO): 325.876ms
Processing time (w/o IO): 327.328ms
Processing time (w/o IO): 327.092ms
Processing time (w/o IO): 326.408ms
Processing time (w/o IO): 327.1ms
  Time (mean ± σ):     630.5 ms ±   6.5 ms    [User: 607.3 ms, System: 27.5 ms]
  Range (min … max):   625.0 ms … 647.2 ms    10 runs

D:

Benchmark 1: ./related
Processing time (w/o IO): 2809.5ms
Processing time (w/o IO): 2804.78ms
Processing time (w/o IO): 2802.39ms
Processing time (w/o IO): 2802.49ms
Processing time (w/o IO): 2803.95ms
Processing time (w/o IO): 2820.47ms
Processing time (w/o IO): 2813.12ms
Processing time (w/o IO): 2810.49ms
Processing time (w/o IO): 2815.13ms
Processing time (w/o IO): 2812.42ms
Processing time (w/o IO): 2813.74ms
Processing time (w/o IO): 2813.03ms
Processing time (w/o IO): 2819.03ms
  Time (mean ± σ):      3.793 s ±  0.009 s    [User: 3.678 s, System: 0.119 s]
  Range (min … max):    3.778 s …  3.804 s    10 runs

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.

None yet

2 participants