ArrayList addition (inc. test, example and documentation)

This commit is contained in:
emirpasic
2015-03-07 17:09:47 +01:00
parent a2f7d2482e
commit 3aa0eeddfb
23 changed files with 496 additions and 32 deletions
-3
View File
@@ -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++ {