mirror of
https://github.com/emirpasic/gods.git
synced 2026-06-15 16:16:35 +03:00
ArrayList addition (inc. test, example and documentation)
This commit is contained in:
@@ -80,9 +80,6 @@ func TestArrayStack(t *testing.T) {
|
||||
}
|
||||
|
||||
func BenchmarkArrayStack(b *testing.B) {
|
||||
// Faster in comparison to the LinkedListStack
|
||||
// BenchmarkArrayStack 5000 325010 ns/op 71648 B/op 1009 allocs/op
|
||||
// BenchmarkLinkedListStack 5000 390812 ns/op 40016 B/op 2001 allocs/op
|
||||
for i := 0; i < b.N; i++ {
|
||||
stack := New()
|
||||
for n := 0; n < 1000; n++ {
|
||||
|
||||
Reference in New Issue
Block a user