| credit_card/is_card_number/ | execution_time | [3.913µs; 3.913µs] or [-0.010%; +0.010%] | None | None | None |
| credit_card/is_card_number/ | throughput | [255536667.107op/s; 255586855.996op/s] or [-0.010%; +0.010%] | None | None | None |
| credit_card/is_card_number/ 3782-8224-6310-005 | execution_time | [81.837µs; 82.133µs] or [-0.181%; +0.181%] | None | None | None |
| credit_card/is_card_number/ 3782-8224-6310-005 | throughput | [12177430.077op/s; 12221502.485op/s] or [-0.181%; +0.181%] | None | None | None |
| credit_card/is_card_number/ 378282246310005 | execution_time | [71.964µs; 72.191µs] or [-0.157%; +0.157%] | None | None | None |
| credit_card/is_card_number/ 378282246310005 | throughput | [13854326.187op/s; 13897196.288op/s] or [-0.154%; +0.154%] | None | None | None |
| credit_card/is_card_number/37828224631 | execution_time | [3.912µs; 3.913µs] or [-0.011%; +0.011%] | None | None | None |
| credit_card/is_card_number/37828224631 | throughput | [255537695.569op/s; 255595311.125op/s] or [-0.011%; +0.011%] | None | None | None |
| credit_card/is_card_number/378282246310005 | execution_time | [68.962µs; 69.162µs] or [-0.145%; +0.145%] | None | None | None |
| credit_card/is_card_number/378282246310005 | throughput | [14460499.519op/s; 14502038.050op/s] or [-0.143%; +0.143%] | None | None | None |
| credit_card/is_card_number/37828224631000521389798 | execution_time | [45.650µs; 45.685µs] or [-0.038%; +0.038%] | None | None | None |
| credit_card/is_card_number/37828224631000521389798 | throughput | [21889293.355op/s; 21906007.297op/s] or [-0.038%; +0.038%] | None | None | None |
| credit_card/is_card_number/x371413321323331 | execution_time | [6.436µs; 6.437µs] or [-0.009%; +0.009%] | None | None | None |
| credit_card/is_card_number/x371413321323331 | throughput | [155360476.799op/s; 155388118.748op/s] or [-0.009%; +0.009%] | None | None | None |
| credit_card/is_card_number_no_luhn/ | execution_time | [3.913µs; 3.913µs] or [-0.011%; +0.011%] | None | None | None |
| credit_card/is_card_number_no_luhn/ | throughput | [255532911.786op/s; 255587593.114op/s] or [-0.011%; +0.011%] | None | None | None |
| credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 | execution_time | [62.675µs; 62.839µs] or [-0.131%; +0.131%] | None | None | None |
| credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 | throughput | [15915003.800op/s; 15956757.508op/s] or [-0.131%; +0.131%] | None | None | None |
| credit_card/is_card_number_no_luhn/ 378282246310005 | execution_time | [54.243µs; 54.267µs] or [-0.022%; +0.022%] | None | None | None |
| credit_card/is_card_number_no_luhn/ 378282246310005 | throughput | [18427405.091op/s; 18435691.782op/s] or [-0.022%; +0.022%] | None | None | None |
| credit_card/is_card_number_no_luhn/37828224631 | execution_time | [3.912µs; 3.913µs] or [-0.009%; +0.009%] | None | None | None |
| credit_card/is_card_number_no_luhn/37828224631 | throughput | [255581185.775op/s; 255629159.978op/s] or [-0.009%; +0.009%] | None | None | None |
| credit_card/is_card_number_no_luhn/378282246310005 | execution_time | [50.496µs; 50.520µs] or [-0.024%; +0.024%] | None | None | None |
| credit_card/is_card_number_no_luhn/378282246310005 | throughput | [19794072.401op/s; 19803568.411op/s] or [-0.024%; +0.024%] | None | None | None |
| credit_card/is_card_number_no_luhn/37828224631000521389798 | execution_time | [45.695µs; 45.732µs] or [-0.040%; +0.040%] | None | None | None |
| credit_card/is_card_number_no_luhn/37828224631000521389798 | throughput | [21866689.842op/s; 21884225.343op/s] or [-0.040%; +0.040%] | None | None | None |
| credit_card/is_card_number_no_luhn/x371413321323331 | execution_time | [6.435µs; 6.436µs] or [-0.009%; +0.009%] | None | None | None |
| credit_card/is_card_number_no_luhn/x371413321323331 | throughput | [155366815.469op/s; 155395820.136op/s] or [-0.009%; +0.009%] | None | None | None |
Uh oh!
There was an error while loading.Please reload this page.
What does this PR do?
Change the collecting boolean field to an Option (inside a Mutex for reasons, but that's beside the point) in the TracerFlareManager. Also adding a
original_log_levelfield that is managed by the integrater code.Motivation
Basically, the integration will have to restore original log level after the Flare is sent, which is impractical because it therefore needs to be saved in a "global" state somewhere. But the TracerFlareManager already has this global scope requirement, thus storing the original log level in it makes sens. The change of the
collectingfield is just about simplifying the API, since now functions likezip_and_sendtake less arguments and stuff.Additional Notes
Anticipating what's going through FFIs once it's implemented could be interesting.
How to test the change?
cargo test(it's still the design phase, it's not integrated anywhere).