Files
RustPython/benches/microbenchmarks/list_count_builtins.py
Steve Shi 723357962a Refactor list avoid duplicate the vec (#3241)
* list count bench
* Refactor list count avoid duplicate the vec
* optimize list count with HEAPTYPE flag
* introduce generic safe iter functions for list
* Refactor list functions (contains, index, remove)
* Refactor list iter functions with const generics
* optimize list with richcompare
* optimize list iter_equal
2021-10-16 13:16:45 +09:00

4 lines
52 B
Python

l = [i for i in range(ITERATIONS)]
# ---
l.count(1)