Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbac authored Mar 1, 2024
1 parent cf0067c commit c065e76
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,80 +43,94 @@ clang 17 -ftime-trace on AMD Ryzen 9 5900X Linux desktop 6.6.11-gentoo-dist
<th>enumerations</th>
<th>instantiation time</th>
<th>*code gen</th>
<th>total time</th>
</tr>
<tr>
<td rowspan="3">lorem_ipsum_long</td>
<td>simple_enum</td>
<td rowspan="3">104</td>
<td>20,973 ms</td>
<td></td>
<td>20,973 ms</td>
</tr>
<tr>
<td>magic_enum</td>
<td>199,867 ms</td>
<td></td>
<td>199,867 ms</td>
</tr>
<tr>
<td>reflect</td>
<td>19,282 ms</td>
<td>36,470 ms</td>
<td>55,752 ms</td>
</tr>
<tr>
<td rowspan="3">E</td>
<td>simple_enum</td>
<td rowspan="3">15</td>
<td>3,993 ms</td>
<td></td>
<td>3,993 ms</td>
</tr>
<tr>
<td>magic_enum</td>
<td>86,089 ms</td>
<td></td>
<td>86,089 ms</td>
</tr>
<tr>
<td>reflect</td>
<td>19,091 ms</td>
<td>27,475 ms</td>
<td>46,566 ms</td>
</tr>
<tr>
<td rowspan="3">lorem_ipsum_short</td>
<td>simple_enum</td>
<td rowspan="3">40</td>
<td>8,694 ms</td>
<td></td>
<td>8,694 ms</td>
</tr>
<tr>
<td>magic_enum</td>
<td>178,864 ms</td>
<td></td>
<td>178,864 ms</td>
</tr>
<tr>
<td>reflect</td>
<td>20,253 ms</td>
<td>41,024 ms</td>
<td>61,277 ms</td>
</tr>
<tr>
<td rowspan="3">strong_untyped</td>
<td>simple_enum</td>
<td rowspan="3">3</td>
<td>1,120 ms</td>
<td></td>
<td>1,120 ms</td>
</tr>
<tr>
<td>magic_enum</td>
<td>151,590 ms</td>
<td></td>
<td>151,590 ms</td>
</tr>
<tr>
<td>reflect</td>
<td>22,732 ms</td>
<td>46,484 ms</td>
<td>69,216 ms</td>
</tr>
</table>
*reflect is not fully comparable as part of calculations are moved to runtime and have to be paid at each enum_name call, so in table included is code generation time which is not present for simple and magic
![obraz](https://github.com/arturbac/simple_enum/assets/14975842/b2675b3a-491f-49e5-a507-5693d729e06b)
Expand Down

0 comments on commit c065e76

Please sign in to comment.