Skip to content

Instantly share code, notes, and snippets.

@piotrmurach
Created February 3, 2013 14:17
Show Gist options
  • Select an option

  • Save piotrmurach/4701967 to your computer and use it in GitHub Desktop.

Select an option

Save piotrmurach/4701967 to your computer and use it in GitHub Desktop.
TTY gem table border rendering benchmarks.
Calculating -------------------------------------
Ruby #to_s 314 i/100ms
TTY #to_s 18 i/100ms
TTY ASCII #to_s 10 i/100ms
TTY Unicode #to_s 10 i/100ms
TTY Color #to_s 6 i/100ms
-------------------------------------------------
Ruby #to_s 3184.8 (±2.6%) i/s - 16014 in 5.031549s
TTY #to_s 180.9 (±0.6%) i/s - 918 in 5.074281s
TTY ASCII #to_s 103.3 (±1.9%) i/s - 520 in 5.039067s
TTY Unicode #to_s 101.9 (±2.0%) i/s - 510 in 5.007401s
TTY Color #to_s 64.7 (±1.5%) i/s - 324 in 5.009856s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment