🐧 linux | swift_numerics | Violet | Violet XsProMax | attaswift |
---|---|---|---|---|
test_string_fromRadix8 | 0.778445 [±0.409%] | 0.00225963 [±2.32%] (3.45e+02x) | 0.00235958 [±4.21%] (3.3e+02x) | 0.0739055 [±0.555%] (10.5x) |
test_string_fromRadix10 | 0.714782 [±0.907%] | 0.00377317 [±0.45%] (1.89e+02x) | 0.00352649 [±1.73%] (2.03e+02x) | 0.0764369 [±2.49%] (9.35x) |
test_string_fromRadix16 | 0.576508 [±0.444%] | 0.00165497 [±2.94%] (3.48e+02x) | 0.00175369 [±0.792%] (3.29e+02x) | 0.0476555 [±3.48%] (12.1x) |
test_string_toRadix8 | 5.85209 [±0.243%] | 0.00225124 [±2.43%] (2.6e+03x) | 0.00211812 [±1.89%] (2.76e+03x) | 0.0942318 [±0.848%] (62.1x) |
test_string_toRadix10 | 1.37548 [±0.204%] | 0.064299 [±0.159%] (21.4x) | 0.0639839 [±0.115%] (21.5x) | 0.109643 [±0.358%] (12.5x) |
test_string_toRadix16 | 4.45437 [±0.132%] | 0.00138765 [±4.09%] (3.21e+03x) | 0.00176265 [±3.32%] (2.53e+03x) | 0.0291409 [±0.412%] (1.53e+02x) |
TOTAL | 13.7517 | 0.0756257 (1.82e+02x) | 0.0755044 (1.82e+02x) | 0.431014 (31.9x) |
🐧 linux | swift_numerics | Violet_new | Violet XsProMax | attaswift |
---|---|---|---|---|
test_equatable_int | 0.03681954 [±2.12%] | 0.0426356 [±0.316%] (0.863x) | 0.0388463 [±0.386%] (0.947x) | 0.0387073 [±0.436%] (0.951x) |
test_equatable_big | 0.04395783 [±1.28%] | 0.0510789 [±1.33%] (0.860x) | 0.04666 [±0.205%] (0.942x) | 0.0537779 [±0.466%] (0.817x) |
test_comparable_int | 0.0380194 [±0.224%] | 0.0425391 [±1.43%] (0.893x) | 0.0396952 [±0.38%] (0.957x) | 0.0386694 [±0.283%] (0.983x) |
test_comparable_big | 0.0455509 [±0.253%] | 0.0519492 [±1.94%] (0.876x) | 0.0476958 [±0.211%] (0.955x) | 0.0526535 [±1.2%] (0.865x) |
TOTAL | 0.16434767 | 0.188203 (0.873x) | 0.172897 (0.950x) | 0.183808 (0.894x) |
🐧 linux | swift_numerics | Violet | Violet XsProMax | attaswift |
---|---|---|---|---|
test_unary_plus_int | 2.205e-07 [±2.15e+03% |
2.36625e-07 [±2.03e+03% |
2.27625e-07 [±2.5e+03% |
2.22e-07 [±2.13e+03% |
test_unary_plus_big | 2.28375e-07 [±1.93e+03% |
2.25125e-07 [±2.21e+03% |
2.2225e-07 [±2.85e+03% |
2.355e-07 [±2.02e+03% |
test_unary_minus_int | 0.00612781 [±0.504%] | 0.00868975 [±0.691%] (0.705x) | 0.00265931 [±1.12%] (2.3x) | 0.00174507 [±0.992%] (3.51x) |
test_unary_minus_big | 0.0157957 [±0.349%] | 0.0120471 [±0.567%] (1.31x) | 0.00362424 [±2.59%] (4.36x) | 0.00431599 [±0.91%] (3.66x) |
test_unary_invert_int | 0.00525182 [±0.561%] | 0.00803803 [±0.852%] (0.653x) | 0.00551401 [±1.21%] (0.952x) | 0.00541528 [±1.16%] (0.97x) |
test_unary_invert_big | 0.0120995 [±0.719%] | 0.0130454 [±1.2%] (0.927x) | 0.00922301 [±0.795%] (1.31x) | 0.0130891 [±1.13%] (0.924x) |
TOTAL | 0.0392753 | 0.0418207 (0.939x) | 0.021021 (1.87x) | 0.0245659 (1.6x) |
🐧 linux | swift_numerics | Violet | Violet XsProMax | attaswift |
---|---|---|---|---|
test_binary_add_int | 0.04892 [±2.49%] | 0.012772 [±2.03%] (3.83x) | 0.011806 [±0.565%] (4.14x) | 0.0209614 [±0.69%] (2.33x) |
test_binary_add_int_inout | 0.0491443 [±0.802%] | 0.0137935 [±0.614%] (3.56x) | 0.0110247 [±0.196%] (4.46x) | 0.0214366 [±0.558%] (2.29x) |
test_binary_add_big | 0.0881512 [±0.553%] | 0.0287068 [±0.307%] (3.07x) | 0.0257665 [±0.552%] (3.42x) | 0.101759 [±0.259%] (0.866x) |
test_binary_add_big_inout | 0.0881019 [±0.243%] | 0.0309699 [±0.402%] (2.84x) | 0.0248792 [±0.164%] (3.54x) | 0.0942309 [±0.227%] (0.935x) |
test_binary_sub_int | 0.0532679 [±1.03%] | 0.0129537 [±0.313%] (4.11x) | 0.0115089 [±0.644%] (4.63x) | 0.0216471 [±0.448%] (2.46x) |
test_binary_sub_int_inout | 0.0530384 [±0.627%] | 0.0142108 [±0.714%] (3.73x) | 0.0110837 [±0.514%] (4.79x) | 0.0219874 [±0.527%] (2.41x) |
test_binary_sub_big | 0.109597 [±0.531%] | 0.0289157 [±2.25%] (3.79x) | 0.0256 [±0.387%] (4.28x) | 0.10066 [±0.847%] (1.09x) |
test_binary_sub_big_inout | 0.109426 [±0.371%] | 0.0311322 [±1.85%] (3.51x) | 0.0245463 [±0.99%] (4.46x) | 0.0965886 [±0.398%] (1.13x) |
TOTAL | 0.599646 | 0.173455 (3.46x) | 0.146215 (4.1x) | 0.479271 (1.25x) |
🐧 linux | swift_numerics | Violet | Violet XsProMax | attaswift |
---|---|---|---|---|
test_binary_mul_int | 0.0113946 [±0.907%] | 0.00903187 [±1.82%] (1.26x) | 0.00871324 [±0.819%] (1.31x) | 0.0117875 [±0.87%] (0.967x) |
test_binary_mul_int_inout | 0.011338 [±0.472%] | 0.00939974 [±0.918%] (1.21x) | 0.0082316 [±0.633%] (1.38x) | 0.0118808 [±0.961%] (0.954x) |
test_binary_mul_big | 0.303243 [±0.614%] | 0.211119 [±0.355%] (1.44x) | 0.209181 [±0.441%] (1.45x) | 1.26263 [±0.729%] (0.24x) |
test_binary_mul_big_inout | 0.302676 [±0.233%] | 0.212539 [±0.315%] (1.42x) | 0.20896 [±0.74%] (1.45x) | 1.25856 [±0.346%] (0.24x) |
test_binary_div_int | 0.046861 [±0.322%] | 0.0379488 [±1.58%] (1.23x) | 0.0372689 [±0.329%] (1.26x) | 0.0452188 [±2.83%] (1.04x) |
test_binary_div_int_inout | 0.0469081 [±0.335%] | 0.0380874 [±1.25%] (1.23x) | 0.037425 [±0.234%] (1.25x) | 0.0451199 [±0.382%] (1.04x) |
test_binary_div_big | 0.283137 [±0.902%] | 0.118628 [±0.515%] (2.39x) | 0.115018 [±0.181%] (2.46x) | 0.459627 [±1.4%] (0.616x) |
test_binary_div_big_inout | 0.284185 [±0.463%] | 0.118927 [±0.405%] (2.39x) | 0.115372 [±4.58%] (2.46x) | 0.457849 [±0.473%] (0.621x) |
test_binary_mod_int | 0.0470169 [±0.545%] | 0.0381447 [±1.21%] (1.23x) | 0.0372225 [±1.87%] (1.26x) | 0.0451968 [±0.691%] (1.04x) |
test_binary_mod_int_inout | 0.0469887 [±1.15%] | 0.039185 [±0.299%] (1.2x) | 0.0374019 [±0.602%] (1.26x) | 0.0456899 [±0.363%] (1.03x) |
test_binary_mod_big | 0.283961 [±0.523%] | 0.117888 [±0.625%] (2.41x) | 0.115471 [±0.179%] (2.46x) | 0.44336 [±1.3%] (0.64x) |
test_binary_mod_big_inout | 0.284699 [±2.45%] | 0.121426 [±0.382%] (2.34x) | 0.116119 [±0.758%] (2.45x) | 0.441505 [±0.347%] (0.645x) |
TOTAL | 1.95241 | 1.07232 (1.82x) | 1.04638 (1.87x) | 4.52842 (0.431x) |
🐧 linux | swift_numerics | Violet | Violet XsProMax | attaswift |
---|---|---|---|---|
test_binary_and_int | 0.0469888 [±1.21%] | 0.0137312 [±0.71%] (3.42x) | 0.0115939 [±0.6%] (4.05x) | 0.0822971 [±1.07%] (0.571x) |
test_binary_and_int_inout | 0.0471732 [±0.959%] | 0.0148134 [±0.235%] (3.18x) | 0.0115458 [±1.04%] (4.09x) | 0.0824636 [±0.465%] (0.572x) |
test_binary_and_big | 0.0677443 [±0.448%] | 0.0336174 [±1.56%] (2.02x) | 0.0286964 [±0.727%] (2.36x) | 0.200947 [±1.67%] (0.337x) |
test_binary_and_big_inout | 0.0678719 [±3.33%] | 0.0356655 [±0.554%] (1.9x) | 0.028771 [±0.302%] (2.36x) | 0.202119 [±0.688%] (0.336x) |
test_binary_or_int | 0.0480475 [±2.23%] | 0.0135167 [±0.53%] (3.55x) | 0.0115014 [±0.641%] (4.18x) | 0.0867317 [±0.622%] (0.554x) |
test_binary_or_int_inout | 0.0470709 [±0.881%] | 0.0145981 [±0.667%] (3.22x) | 0.011409 [±1.04%] (4.13x) | 0.0873101 [±0.874%] (0.539x) |
test_binary_or_big | 0.0689075 [±0.358%] | 0.0327386 [±0.239%] (2.1x) | 0.0292656 [±0.477%] (2.35x) | 0.216159 [±0.463%] (0.319x) |
test_binary_or_big_inout | 0.0680475 [±0.745%] | 0.0352975 [±1.2%] (1.93x) | 0.0289826 [±0.839%] (2.35x) | 0.216795 [±0.311%] (0.314x) |
test_binary_xor_int | 0.0473859 [±1.39%] | 0.0143746 [±0.86%] (3.3x) | 0.0123911 [±1.34%] (3.82x) | 0.0761742 [±0.454%] (0.622x) |
test_binary_xor_int_inout | 0.0470119 [±1.03%] | 0.0157036 [±1.59%] (2.99x) | 0.0124064 [±1.91%] (3.79x) | 0.0759274 [±0.554%] (0.619x) |
test_binary_xor_big | 0.0681346 [±2.0%] | 0.0346251 [±1.38%] (1.97x) | 0.0302293 [±0.539%] (2.25x) | 0.197697 [±2.62%] (0.345x) |
test_binary_xor_big_inout | 0.0685544 [±2.16%] | 0.0369463 [±0.306%] (1.86x) | 0.0301187 [±1.6%] (2.28x) | 0.195163 [±0.318%] (0.351x) |
TOTAL | 0.692938 | 0.295628 (2.34x) | 0.246911 (2.81x) | 1.71978 (0.403x) |
🐧 linux | swift_numerics | Violet | Violet XsProMax | attaswift |
---|---|---|---|---|
test_shiftLeft_int | 0.0517344 [±4.25%] | 0.0160056 [±0.507%] (3.23x) | 0.0133151 [±0.955%] (3.89x) | 0.0122205 [±2.26%] (4.23x) |
test_shiftLeft_int_inout | 0.0510437 [±2.15%] | 0.0160928 [±0.512%] (3.17x) | 0.0133221 [±1.87%] (3.83x) | 0.0154657 [±0.637%] (3.3x) |
test_shiftLeft_big | 0.377061 [±0.589%] | 0.0222316 [±0.593%] (17.0x) | 0.0191905 [±4.83%] (19.6x) | 0.192514 [±0.737%] (1.96x) |
test_shiftLeft_big_inout | 0.375003 [±0.337%] | 0.0222111 [±0.276%] (16.9x) | 0.0190436 [±0.333%] (19.7x) | 0.0381185 [±1.2%] (9.84x) |
test_shiftRight_int | 0.0345252 [±0.826%] | 0.0171792 [±1.34%] (2.01x) | 0.0139926 [±0.576%] (2.47x) | 0.0109354 [±0.742%] (3.16x) |
test_shiftRight_int_inout | 0.0333547 [±0.643%] | 0.0163169 [±0.905%] (2.04x) | 0.0138048 [±0.662%] (2.42x) | 0.0131605 [±2.51%] (2.53x) |
test_shiftRight_big | 0.450327 [±0.467%] | 0.0227033 [±0.609%] (19.8x) | 0.0197798 [±0.565%] (22.8x) | 0.0408855 [±1.04%] (11.0x) |
test_shiftRight_big_inout | 0.452021 [±1.06%] | 0.0226998 [±0.708%] (19.9x) | 0.0196845 [±0.109%] (23.0x) | 0.0344686 [±4.49%] (13.1x) |
TOTAL | 1.82507 | 0.15544 (11.7x) | 0.132133 (13.8x) | 0.357769 (5.1x) |
🐧 linux | swift_numerics | Violet | Violet XsProMax | attaswift |
---|---|---|---|---|
test_pi_500 | 0.0145392 [±0.688%] | 0.00615131 [±0.876%] (2.36x) | 0.00919731 [±2.86%] (1.58x) | 0.0232166 [±1.51%] (0.626x) |
test_pi_1000 | 0.0525604 [±0.338%] | 0.0212518 [±0.494%] (2.47x) | 0.0335248 [±0.387%] (1.57x) | 0.09368 [±1.98%] (0.561x) |
test_pi_5000 | 1.33096 [±0.373%] | 0.513098 [±0.666%] (2.59x) | 0.843021 [±0.254%] (1.58x) | 2.6333 [±1.63%] (0.505x) |
TOTAL | 1.39806 | 0.540501 (2.59x) | 0.885743 (1.58x) | 2.7502 (0.508x) |
Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0]
N | With print (same as Swift) | Without print |
---|---|---|
500 | 0.005487s | 0.005472s |
1000 | 0.02086s | 0.02068s |
5000 | 0.5643s | 0.5593s |