spinrite_test.go 290 B

1234567891011121314151617
  1. package door
  2. import "testing"
  3. func BenchmarkSpinRite(b *testing.B) {
  4. Unicode = true
  5. for i := 0; i < b.N; i++ {
  6. var spin SpinRiteMsg = SpinRiteMsgInit(15, 5,
  7. ColorText("RED ON GREEN"),
  8. []string{"RED", "GREEN", "SOFTWARE"})
  9. for x := 0; x < 20; x++ {
  10. spin.Output()
  11. }
  12. }
  13. }