Advertisement
hakonhagland

UTF8 decoding

Jul 23rd, 2015
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. Benchmark: timing 10000 iterations of decode-UTF-8, decode-utf8, open-UTF-8, open-utf8, ptiny...
  2. decode-UTF-8: 20 wallclock secs (19.94 usr + 0.13 sys = 20.07 CPU) @ 498.26/s (n=10000)
  3. decode-utf8: 20 wallclock secs (19.77 usr + 0.18 sys = 19.95 CPU) @ 501.25/s (n=10000)
  4. open-UTF-8: 25 wallclock secs (24.95 usr + 0.16 sys = 25.11 CPU) @ 398.25/s (n=10000)
  5. open-utf8: 4 wallclock secs ( 3.16 usr + 0.15 sys = 3.31 CPU) @ 3021.15/s (n=10000)
  6. ptiny: 25 wallclock secs (25.24 usr + 0.12 sys = 25.36 CPU) @ 394.32/s (n=10000)
  7. Rate ptiny open-UTF-8 decode-UTF-8 decode-utf8 open-utf8
  8. ptiny 394/s -- -1% -21% -21% -87%
  9. open-UTF-8 398/s 1% -- -20% -21% -87%
  10. decode-UTF-8 498/s 26% 25% -- -1% -84%
  11. decode-utf8 501/s 27% 26% 1% -- -83%
  12. open-utf8 3021/s 666% 659% 506% 503% --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement