Skip to content

Commit c623f72

Browse files
authored
Merge pull request #210 from Rust-Data-Science/wip-fix-benchmark-sort
fix benchmark test
2 parents de87aa8 + 7834dc6 commit c623f72

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

benchmark/floating.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from random import random, seed
22

3-
import numpy as np
43
from ulist.utils import Benchmarker
54

65
seed(100)
@@ -102,7 +101,7 @@ def cases(self) -> list:
102101
]
103102

104103
def ulist_fn(self, args) -> None:
105-
args[0].sort(ascending=True)
104+
args[0].copy().sort(ascending=True)
106105

107106
def other_fn(self, args) -> None:
108-
np.sort(args[0])
107+
args[0].copy().sort()

0 commit comments

Comments
 (0)