summaryrefslogtreecommitdiff
path: root/benchmarks
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #22889 from mattip/speedup-ufunc.at-mainSebastian Berg2023-01-031-0/+10
|\ | | | | ENH: Speedup ufunc.at when casting is not needed
| * BENCH: use intp dtype when indexingMatti Picus2023-01-031-1/+1
| | | | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
| * add fast iter loop and benchmarkmattip2022-12-261-0/+10
| |
* | DOC: linting, spellingMatti Picus2023-01-021-1/+2
| |
* | DOC: describe the quick commandMatti Picus2023-01-021-2/+3
| |
* | DOC: Update to clarify local benchmark testingRohit Goswami2023-01-011-0/+11
| |
* | DOC: Update to remove benchmark contributionsRohit Goswami2022-12-311-4/+3
| |
* | DOC: Cleanup and simplify with ASVRohit Goswami2022-12-261-5/+4
| |
* | DOC: Add details on benchmarking versionsRohit Goswami2022-12-261-0/+20
|/
* Merge pull request #22731 from HaoZeke/maBenchCleanupMatti Picus2022-12-051-0/+146
|\ | | | | BENCH: Update MaskedArray Benchmarks
| * BENCH: Port ma/bench.py to asvRohit Goswami2022-12-051-0/+146
| |
* | BENCH: Add a test for masked array creationsRohit Goswami2022-12-031-0/+8
|/
* MAINT: change subprocess arguments from Python>=3.7Mike Taves2022-10-271-1/+1
|
* MAINT: remove u-prefix for former Unicode strings (#22479)Mike Taves2022-10-261-16/+16
|
* MAINT: Fix linter errorRaghuveer Devulapalli2022-09-261-1/+1
|
* BENCH: Add benchmarks for fp16 umath functionsRaghuveer Devulapalli2022-09-261-1/+1
|
* Fixed linter errorsMatthew Sterrett2022-09-091-1/+4
|
* BENCH: Adds benchmarks for arctan2 and powerMatthew Sterrett2022-09-091-0/+17
|
* remove unneeded future importsJake Bowhay2022-07-173-6/+0
|
* Merge pull request #21832 from eendebakpt/optimize_linspaceMatti Picus2022-07-081-0/+9
|\ | | | | PERF: Micro optimize np.linspace
| * add linspace benchmarkPieter Eendebak2022-06-271-0/+9
| |
* | Merge pull request #12065 from MilesCranmer/masterSebastian Berg2022-06-231-0/+19
|\ \ | |/ |/| MAINT: Optimize np.isin and np.in1d for integer arrays
| * BENCH: Add benchmark for integer input to np.isinMilesCranmer2022-06-091-0/+19
| |
* | ENH: Implement string comparison ufuncs (or almost) (#21041)Sebastian Berg2022-06-101-0/+45
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ENH: Implement string comparison ufuncs (or almost) This makes all comparison operators and ufuncs work on strings using the ufunc machinery. It requires a half-manual "ufunc" to keep supporting void comparisons and especially `np.compare_chararrays` (that one may have a bit more overhead now). In general the new code should be much faster, and has a lot of easier optimization potential. It is also much simpler since it can outsource some complexities to the ufunc/iterator machinery. This further fixes a couple of bugs with byte-swapped strings. The backward compatibility related change is that using the normal ufunc machinery means that string comparisons between string and unicode now give a `FutureWarning` (instead of just False). * MAINT: Do not use C99 tagged struct init in C++ C++ does not like it (at least not before C++20)... GCC and clang don't seem to mind, but MSVC seems to. * BENCH: Add basic string comparison benchmarks * DOC,STY: Fixup string-comparisons comments based on review Thanks to Marten's comments, a few clarfications and slight fixups. * ENH: Use `memcmp` because it may be faster for the byte case * TST: Improve string and unicode comparison tests. * MAINT: Use switch statement based on review As suggested be Serge. Co-authored-by: Serge Guelton <serge.guelton@telecom-bretagne.eu> * TST: Make unicode byte-swap test slightly more concrete The issue is that the `view` needs to use native byte-order, so just ensure native byte-order for the view, and then do another cast to get it right. * BUG: Add `np.compare_chararrays` to test and fix typo * TST: Add test for empty string comparisons * TST: Fixup string test based on martens review * MAINT: Move definitions back into string_ufuncs.h * MAINT: Use enum class for comparison operator templating This removes the need for a dynamic (or static) assert in the switch statement. * Template version of add_loop to avoid redundant code * STY: Fixup style, two spaces, error is -1 * STY: Small `string_ufuncs.cpp` fixups based on Serge's review * MAINT: Fix merge conflict (ensure_dtype_nbo was removed) Co-authored-by: Serge Guelton <serge.guelton@telecom-bretagne.eu>
* SIMD: Use universal intrinsics to implement comparison functionsRafael Cardoso Fernandes Sousa2022-05-231-1/+18
|
* add test for small percentilePieter Eendebak2022-05-101-1/+4
|
* fix mean testPieter Eendebak2022-05-101-2/+2
|
* PERF Add benchmarks targeted at small arrays and scalarsPieter Eendebak2022-05-104-1/+67
|
* Merge pull request #21188 from seberg/scalar-math-rewriteMatti Picus2022-05-071-0/+34
|\ | | | | MAINT,ENH: Rewrite scalar math logic
| * BENCH: Add scalar/array mixed arithmetic cases to the benchmarkSebastian Berg2022-05-061-0/+22
| |
| * MAINT,ENH: Rewrite scalar math logicSebastian Berg2022-04-241-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit tries to redo the scalar math logic to take some more care about subclasses, but most of all introduce logic to defer to the `other` if `self` can be cast to it safely (i.e. it is the correct promotion). This makes things much faster and more reliable, since we now use defer much less to `ufuncs` indirectly. This ensures that integer overflows are reported more reliably. Another major point about it, is that this reorganizes the coercion of Python int, float, complex (and bool). This should help a bit with switching to "weak" Python scalars. This may just be a first step on a longer path...
* | DEV: Pin setuptools in the asv configSebastian Berg2022-05-062-0/+2
|/ | | | | | | | | | | Adding the setuptools version to the matrix makes sure that asv (run through `runtests`) locally works again. I am not quite sure what changed that I now run into this issue and previously do not (and neither does the CI runner yet). There may be a better solution, but this seems fine for now? Closes gh-21428
* DOC: various spell checks and typo fixes (#21314)Logan Thomas2022-04-101-25/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: contigous -> contiguous * DOC: enlongated -> elongated * DOC: thuse -> thus * DOC: quantityt -> quantity * DOC: suppled -> supplied * DOC: intgrally -> integrally * DOC: assignnent -> assignment * DOC: homoegeneous -> homogeneous * DOC: interpereted -> interpreted * DOC: optimised -> optimized * DOC: Advantanges -> Advantages * DOC: realised -> realized * DOC: parametrizing -> parameterizing * DOC: realised -> realized * DOC: intrisics -> intrinsics * DOC: ablility -> ability * DOC: intrisic -> intrinsic * DOC: unversal -> universal * DOC: machnisms -> mechanisms * DOC: specfiy -> specify * DOC: exclution -> exclusion * DOC: optimzations -> optimizations * DOC: declrations -> declarations * DOC: auto-gernreated -> auto-generated * DOC: it highely recomaned -> it is highly recommended * DOC: exectuing -> executing * DOC: strectched -> stretched * DOC: foriegn -> foreign * DOC: indeded -> intended * DOC: multimdimensional -> multidimensional * DOC: supserseded -> superseded * DOC: generalisation -> generalization * FIX: whitespace before comma
* BENCH: Kron benchmarks (#21232)Ganesh Kathiresan2022-03-271-0/+18
|
* BENCH: make the np.where benchmark more completeJérôme Richard2022-03-051-0/+55
|
* ENH, SIMD: improve argmax/argmin performanceSayed Adel2022-02-131-1/+13
| | | | | for all integers, f32 and f64 data types on all supported architectures via universal intrinsics.
* Merge pull request #20976 from rafaelcfsousa/p10_enh_intdivMatti Picus2022-02-101-0/+13
|\ | | | | ENH,BENCH: Optimize floor_divide for VSX4/Power10
| * BENCH: Add arr // arr for floor_divideRafael Cardoso Fernandes Sousa2022-02-021-0/+13
| |
* | BENCH: Add benchmarks for 32-bit data type sortingRaghuveer Devulapalli2022-01-141-1/+1
|/
* BENCH: cover integer max/min and fmax/fmin testsSayed Adel2021-12-312-13/+40
| | | | also covers variant of strides sizes
* Merge pull request #19485 from r-devulap/fp-testsMatti Picus2021-08-041-21/+11
|\ | | | | TST/BENCH: Adding test coverage and benchmarks for floating point umath functions
| * BENCH: Add benchmarking for ufuncs using SVML implementationsRaghuveer Devulapalli2021-07-161-21/+11
| |
* | DEV: Update default Python in benchmark config.Ross Barnowski2021-08-032-2/+2
|/
* ENH: add new function `_opt_info()` to utils provides the optimization info ↵Sayed Adel2021-04-221-1/+1
| | | | of NumPy build
* MAINT, Benchmark: print the supported CPU features during the run of ↵Sayed Adel2021-04-221-0/+52
| | | | performance tests
* Merge pull request #18728 from anthonyhvo12/avo-exceptions-chainingCharles Harris2021-04-122-6/+6
|\ | | | | MAINT: Add exception chaining where appropriate
| * Update benchmarks/benchmarks/bench_ufunc_strides.pyAnthony Vo2021-04-051-1/+1
| | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * Merge branch 'main' of https://github.com/numpy/numpy into ↵Anthony Vo2021-04-052-2/+2
| |\ | | | | | | | | | avo-exceptions-chaining
| * | chain exceptions when appropriateAnthony Vo2021-04-052-7/+7
| | |
* | | Merge pull request #18075 from ganesh-k13/enh_simd_npyv_floor_divMatti Picus2021-04-061-7/+8
|\ \ \ | |_|/ |/| | ENH, SIMD: Dispatch for unsigned floor division