alexococo

const str len C

Jun 18th, 2025
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. ./ty
  2. === strlen_by_length ===
  3.  
  4. [empty] 0 bytes
  5. const_time_swar : 3.5 ns/op (checksum 18446744073702551616)
  6. libc_strlen : 6.4 ns/op (checksum 0)
  7.  
  8. [tiny (1-4)] 1 bytes
  9. const_time_swar : 2.1 ns/op (checksum 18446744073703551616)
  10. libc_strlen : 3.4 ns/op (checksum 1000000)
  11.  
  12. [small (5-16)] 8 bytes
  13. const_time_swar : 1.5 ns/op (checksum 8000000)
  14. libc_strlen : 3.1 ns/op (checksum 8000000)
  15.  
  16. [medium (17-64)] 34 bytes
  17. const_time_swar : 1.8 ns/op (checksum 34000000)
  18. libc_strlen : 4.4 ns/op (checksum 34000000)
  19.  
  20. [large (65-128)] 69 bytes
  21. const_time_swar : 1.3 ns/op (checksum 69000000)
  22. libc_strlen : 2.7 ns/op (checksum 69000000)
  23.  
  24. [xlarge (129-255)] 200 bytes
  25. const_time_swar : 1.2 ns/op (checksum 200000000)
  26. libc_strlen : 3.0 ns/op (checksum 200000000)
Add Comment
Please, Sign In to add comment