|
@@ -23,17 +23,26 @@ func TestRandom(t *testing.T) {
|
|
|
func TestNoMoreSecrets(t *testing.T) {
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+// Benchmark / profiling
|
|
|
+
|
|
|
+// TODO: Update NoMoreSecrets so it can be benchmarked.
|
|
|
+// Currently, it needs a working door connection.
|
|
|
+
|
|
|
func BenchmarkNoMoreSecrets(b *testing.B) {
|
|
|
- Unicode = true
|
|
|
- var d *Door = &Door{}
|
|
|
+ /*
|
|
|
+ Unicode = true
|
|
|
+ // We need a valid working Door{} object to run this.
|
|
|
+ var d *Door = &Door{}
|
|
|
|
|
|
- for i := 0; i < b.N; i++ {
|
|
|
- var output = Goto(5, 5) + ColorText("WHITE ON BLUE") + "Secret Text Revealed!"
|
|
|
- var better NoMoreSecretsConfig = NoMoreSecretsDefault
|
|
|
- better.Jumble_Loop_Speed = 75 // 35
|
|
|
- better.Reveal_Loop_Speed = 100 // 50
|
|
|
- better.Color = ColorText("BRI CYAN ON BLUE")
|
|
|
+ for i := 0; i < b.N; i++ {
|
|
|
+ var output = Goto(5, 5) + ColorText("WHITE ON BLUE") + "Secret Text Revealed!"
|
|
|
+ var better NoMoreSecretsConfig = NoMoreSecretsDefault
|
|
|
+ better.Jumble_Loop_Speed = 75 // 35
|
|
|
+ better.Reveal_Loop_Speed = 100 // 50
|
|
|
+ better.Color = ColorText("BRI CYAN ON BLUE")
|
|
|
|
|
|
- NoMoreSecrets(output, d, &better)
|
|
|
- }
|
|
|
+ NoMoreSecrets(output, d, &better)
|
|
|
+ }
|
|
|
+ */
|
|
|
}
|