(b *testing.B)
| 373 | } |
| 374 | |
| 375 | func BenchmarkSystem_RequestResponse(b *testing.B) { |
| 376 | system := NewSystem("bench") |
| 377 | defer system.Shutdown() |
| 378 | |
| 379 | pid := system.Spawn(&EchoActor{}, "echo") |
| 380 | |
| 381 | for i := 0; b.Loop(); i++ { |
| 382 | _, _ = system.Request(pid, &PingMsg{Count: i}, time.Second) |
| 383 | } |
| 384 | } |
| 385 | |
| 386 | func BenchmarkSystem_SpawnStop(b *testing.B) { |
| 387 | system := NewSystem("bench") |