Skip to content

Increase performance #25

@LimeEng

Description

@LimeEng

As of right now performance is quite poor. Increase it somehow.

Platform info:

Windows_NT 10.0.17134 x64
Node.js 10.5.0
V8 6.7.288.46-node.8
Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz x 8

┌────────────────────────────────────────────────────────────────┐
│                      Execute 100 promises                      │
├──────────────────┬────────────────┬──────────────┬─────────────┤
│ name             │ ops/sec        │ runs sampled │ performance │
├──────────────────┼────────────────┼──────────────┼─────────────┤
│ Semaphore(1)     │ 14,935 ± 0.47% │ 84           │ -80.28%     │
├──────────────────┼────────────────┼──────────────┼─────────────┤
│ Semaphore(2)     │ 16,247 ± 0.69% │ 85           │ -78.55%     │
├──────────────────┼────────────────┼──────────────┼─────────────┤
│ Semaphore(10)    │ 17,006 ± 0.49% │ 84           │ -77.55%     │
├──────────────────┼────────────────┼──────────────┼─────────────┤
│ Semaphore(100)   │ 17,483 ± 0.38% │ 89           │ -76.92%     │
├──────────────────┼────────────────┼──────────────┼─────────────┤
│ Semaphore(1000)  │ 17,578 ± 0.29% │ 89           │ -76.79%     │
├──────────────────┼────────────────┼──────────────┼─────────────┤
│ Semaphore(10000) │ 17,385 ± 0.27% │ 89           │ -77.05%     │
├──────────────────┼────────────────┼──────────────┼─────────────┤
│ baseline         │ 75,744 ± 0.17% │ 90           │ fastest     │
└──────────────────┴────────────────┴──────────────┴─────────────┘

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions