Skip to content

kateinoigakukun/DispatchBenchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DispatchBenchmark

Benchmark project for Swift method dispatch.

Requirement

  • Xcode 10.0~
  • Swift 4.2

Benchmark

$ swift run

+---------+----------------+-----------------+------------------+-------------------+
|                              Performance (CPU time)                               |
+---------+----------------+-----------------+------------------+-------------------+
| Kind    | 100000 (times) | 1000000 (times) | 10000000 (times) | 100000000 (times) |
+---------+----------------+-----------------+------------------+-------------------+
| static  | 508            | 8169            | 48134            | 495011            |
| vtable  | 1072           | 7982            | 52529            | 563639            |
| witness | 1354           | 6775            | 74830            | 681096            |
+---------+----------------+-----------------+------------------+-------------------+

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages