Skip to content

Instantly share code, notes, and snippets.

@mbrandonw
Last active July 14, 2022 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbrandonw/90d889f07a22b22b88095470adaae5cc to your computer and use it in GitHub Desktop.
Save mbrandonw/90d889f07a22b22b88095470adaae5cc to your computer and use it in GitHub Desktop.
-Arithmetic.Parser                                 875.000 ns ±   6.62 %    1000000
+Arithmetic.Parser                                8042.000 ns ±   5.91 %     174657

-BinaryData.Parser                                  42.000 ns ±  65.97 %    1000000
+BinaryData.Parser                                  42.000 ns ±  56.81 %    1000000

-Bool.Bool.init                                     41.000 ns ±  51.08 %    1000000
+Bool.Bool.init                                     41.000 ns ±  60.69 %    1000000

-Bool.Bool.parser                                   42.000 ns ±  67.27 %    1000000
+Bool.Bool.parser                                   42.000 ns ±  57.28 %    1000000

-Bool.Scanner.scanBool                            1041.000 ns ±  25.01 %    1000000
+Bool.Scanner.scanBool                            1041.000 ns ±  25.98 %    1000000

-Color.Parser                                      167.000 ns ±  37.06 %    1000000
+Color.Parser                                      209.000 ns ±  13.68 %    1000000

-CSV.Parser                                    1532729.000 ns ±   0.96 %        940
+CSV.Parser                                    4047750.000 ns ±   1.18 %        349

-CSV.Ad hoc mutating methods                    890833.000 ns ±   1.87 %       1587
+CSV.Ad hoc mutating methods                    898604.000 ns ±   1.49 %       1596

-Date.Parser                                      5875.000 ns ±  17.11 %     238925
+Date.Parser                                      6416.000 ns ±   2.56 %     219218

-Date.DateFormatter                              25708.000 ns ±   2.39 %      54215
+Date.DateFormatter                              25625.000 ns ±   2.19 %      54110

-Date.ISO8601DateFormatter                       34458.000 ns ±   1.97 %      40623
+Date.ISO8601DateFormatter                       35125.000 ns ±   1.71 %      39758

-HTTP.HTTP                                        4666.000 ns ±   7.73 %     303258
+HTTP.HTTP                                        9709.000 ns ±   3.81 %     138868

-JSON.Parser                                      5458.000 ns ±  11.09 %     251888
+JSON.Parser                                     32292.000 ns ±   3.18 %      41890

-JSON.JSONSerialization                           1792.000 ns ±   7.42 %     774211
+JSON.JSONSerialization                           1833.000 ns ±   8.58 %     764057

-Numerics.Int.init                                  41.000 ns ±  72.85 %    1000000
+Numerics.Int.init                                  41.000 ns ±  84.54 %    1000000

-Numerics.Int.parser                                42.000 ns ±  51.11 %    1000000
+Numerics.Int.parser                                42.000 ns ±  72.17 %    1000000

-Numerics.Scanner.scanInt                          125.000 ns ±  39.76 %    1000000
+Numerics.Scanner.scanInt                          125.000 ns ±  20.26 %    1000000

-Numerics.Comma separated: Int.parser          3192834.000 ns ±   1.20 %        435
+Numerics.Comma separated: Int.parser          8096459.000 ns ±   0.44 %        173

-Numerics.Comma separated: Scanner.scanInt    49151000.000 ns ±   0.18 %         28
+Numerics.Comma separated: Scanner.scanInt    49178770.500 ns ±   0.24 %         28

-Numerics.Comma separated: String.split       14851083.000 ns ±   0.95 %         93
+Numerics.Comma separated: String.split       14922583.500 ns ±   0.67 %         94

-Numerics.Double.init                               42.000 ns ±  89.65 %    1000000
+Numerics.Double.init                               42.000 ns ±  72.61 %    1000000

-Numerics.Double.parser                             84.000 ns ±  36.70 %    1000000
+Numerics.Double.parser                             84.000 ns ±  33.88 %    1000000

-Numerics.Scanner.scanDouble                       167.000 ns ±  19.24 %    1000000
+Numerics.Scanner.scanDouble                       167.000 ns ±  18.84 %    1000000

-Numerics.Comma separated: Double.parser       9382208.000 ns ±   0.45 %        149
+Numerics.Comma separated: Double.parser       9807500.000 ns ±   0.46 %        143

-Numerics.Comma separated: Scanner.scanDouble 50533499.500 ns ±   0.29 %         28
+Numerics.Comma separated: Scanner.scanDouble 50431521.000 ns ±   0.19 %         28

-Numerics.Comma separated: String.split       18779167.000 ns ±   0.62 %         75
+Numerics.Comma separated: String.split       18744125.000 ns ±   0.46 %         75

-PrefixUpTo.Parser: Substring                   232625.000 ns ±   0.83 %       6010
+PrefixUpTo.Parser: Substring                   249958.000 ns ±   0.88 %       5595

-PrefixUpTo.Parser: UTF8                         14333.000 ns ±   2.35 %      98132
+PrefixUpTo.Parser: UTF8                         13250.000 ns ±   2.96 %     105812

-PrefixUpTo.String.range(of:)                    43084.000 ns ±   1.65 %      32429
+PrefixUpTo.String.range(of:)                    43084.000 ns ±   1.57 %      32439

-PrefixUpTo.Scanner.scanUpToString               47459.000 ns ±   2.09 %      29435
+PrefixUpTo.Scanner.scanUpToString               47500.000 ns ±   1.27 %      29444

-Race.Parser                                     26167.000 ns ±  14.93 %      53359
+Race.Parser                                     34417.000 ns ±   2.73 %      40502

-README Example.Parser: Substring                 3666.000 ns ±   4.01 %     378810
+README Example.Parser: Substring                 4000.000 ns ±   3.79 %     347868

-README Example.Parser: UTF8                       916.000 ns ±   6.78 %    1000000
+README Example.Parser: UTF8                      1125.000 ns ±   7.92 %    1000000

-README Example.Ad hoc                            3542.000 ns ±   7.38 %     396249
+README Example.Ad hoc                            3542.000 ns ±   4.13 %     394248

-README Example.Scanner                          14291.000 ns ±   3.38 %      98263
+README Example.Scanner                          14292.000 ns ±   2.82 %      97922

-Routing.Parser                                  14333.000 ns ±   3.40 %      97289
+Routing.Parser                                  21750.000 ns ±   3.23 %      64256

-String Abstractions.Substring                  887833.000 ns ±   0.69 %       1577
+String Abstractions.Substring                  934167.000 ns ±   0.60 %       1505

-String Abstractions.UTF8                        37375.000 ns ±   1.56 %      37455
+String Abstractions.UTF8                       158750.000 ns ±   1.36 %       8816

-UUID.UUID.init                                    209.000 ns ±  14.23 %    1000000
+UUID.UUID.init                                    209.000 ns ±  15.02 %    1000000

-UUID.UUID.parser                                  375.000 ns ±  60.49 %    1000000
+UUID.UUID.parser                                  208.000 ns ±  24.17 %    1000000

-Xcode Logs.Parser                             3499833.000 ns ±   0.71 %        401
+Xcode Logs.Parser                             3768437.500 ns ±   0.56 %        372
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment