ported benchmarks and examples back to v1

to keep references to leaves, preventing GC