github.com/diamondburned/arikawa/v2@v2.1.0/bot/README.md (about)

     1  ## What are the performance impacts of this library?
     2  
     3  Not a lot for a Discord bot:
     4  
     5  # THIS IS OUTDATED. TODO: UPDATE.
     6  
     7  ```
     8  # Cold functions, or functions that are called once in runtime:
     9  BenchmarkConstructor-8               	  150537	      7617 ns/op
    10  BenchmarkSubcommandConstructor-8     	  155068	      7721 ns/op
    11  
    12  # Hot functions, or functions that can be called multiple times:
    13  BenchmarkCall-8                      	 1000000	      1194 ns/op
    14  BenchmarkHelp-8                      	 1751619	       680 ns/op
    15  
    16  # Hot functions, but called implicitly on non-message-create events:
    17  BenchmarkReflectChannelID_1Level-8   	10111023	       113 ns/op
    18  BenchmarkReflectChannelID_5Level-8   	 1872080	       686 ns/op
    19  ```