spinrite_test.go 253 B

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