Skip to content

Optimization based on benchmark #16

@youknowone

Description

@youknowone

Summary

RustPython 성능 분석 결과

CPython 3.14 vs RustPython

  ┌─────────────────┬─────────┬────────────┬───────┐
  │    benchmark     │ CPython │ RustPython │ multiplier  │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ method_call     │ 0.0155s │ 0.5650s    │ 36.5x │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ func_call       │ 0.0266s │ 0.5438s    │ 20.4x │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ attr_access     │ 0.0146s │ 0.2673s    │ 18.3x │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ object_creation │ 0.0380s │ 0.6205s    │ 16.3x │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ string_ops      │ 0.0048s │ 0.0779s    │ 16.2x │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ unpacking       │ 0.0226s │ 0.3053s    │ 13.5x │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ nested_loop     │ 0.0192s │ 0.1519s    │ 7.9x  │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ float_arith     │ 0.0654s │ 0.4944s    │ 7.6x  │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ global_access   │ 0.0161s │ 0.1185s    │ 7.4x  │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ list_ops        │ 0.0203s │ 0.1399s    │ 6.9x  │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ generator       │ 0.0297s │ 0.1730s    │ 5.8x  │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ list_comp       │ 0.0252s │ 0.1270s    │ 5.0x  │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ exception       │ 0.0061s │ 0.0242s    │ 4.0x  │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ int_arith       │ 0.0962s │ 0.3638s    │ 3.8x  │
  ├─────────────────┼─────────┼────────────┼───────┤
  │ dict_ops        │ 0.0217s │ 0.0685s    │ 3.2x  │

Details

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions