As somebody who uses Pandas/scipy regularly, what is the advantage of using this and how does performance compare? Sounds like compiling the ibex script or whatever to C++ is the main feature, but what's the performance vs numpy?
I originally built this with just the idea of providing a simpler syntax than can be provided in a host language. When writing code with libraries like Polars or pandas, you have to write valid Python. This forces you to put quotes around every column name for example. With Ibex you can just write bare column names, from the website:
ibex> ticks[select { avg_price = mean(price), traded = sum(volume) }, by symbol, order { avg_price desc }];
I strived to be more compact and easier to write than Polars/pandas and SQL but more readable than APL/J/K.
Early on, I just wanted it to be somewhat fast, by picking reasonable data structures and writing it in C++ I sort of got there but I soon realised there was more to be gained. Coding agents became quite good at optimisation as well, so the last couple of months I have been squeezing out performance. I think this was quite successful, for in memory tasks and up to 8 cores Ibex turned out to be one of the speedier options. I have an overview[1] but I didn’t want to lead with it because these are homegrown, Ibex is particularly well adjusted to what I found interesting and added, and honest benchmarking isn’t easy and I don’t want to give an overly optimistic picture. I haven’t compared to numpy yet because I focus on tables, doing something interesting with matrices is in the pipeline and then I will compare against numpy as well. So to answer your question: Ibex is fast for many workloads but YMMV.
I don’t quite follow, would you like to see filter performance for various tables? I did those tests as well but for sharing I focus on 3rd party benchmark suites, those are harder to game.
If polars has a performance cliff in some configuration of a query, then I can put vanilla datafusion against it and say it is 50x faster. There is no point in comparing them like this to each other.
If you said it can filter through 20GB of data in a second on a single thread, then that is really good regardless except if the computer has 400GB of ram then it matters if it was cached beforehand etc. It is just not easy to do benchmarks.
It is absurd that we are not even close to having this quality 6 years after these things were done and we even have tireless LLMs to use now. There is no excuse.
This kind of writing in the OP is not about knowledge or learning or technicality of something it is more like a tooth paste commercial on tv with some numbers on the side. AHH wait, those commercials also have the same numbers.
I invite you to have a look at the benchmarking page[1] where different benchmarking suites are measured at different core counts and sizes. Note that the PDS-H suite originates from Polars and trust me that I have ran on different configurations to sanity check these results.
As somebody who uses Pandas/scipy regularly, what is the advantage of using this and how does performance compare? Sounds like compiling the ibex script or whatever to C++ is the main feature, but what's the performance vs numpy?
I originally built this with just the idea of providing a simpler syntax than can be provided in a host language. When writing code with libraries like Polars or pandas, you have to write valid Python. This forces you to put quotes around every column name for example. With Ibex you can just write bare column names, from the website:
I strived to be more compact and easier to write than Polars/pandas and SQL but more readable than APL/J/K.Early on, I just wanted it to be somewhat fast, by picking reasonable data structures and writing it in C++ I sort of got there but I soon realised there was more to be gained. Coding agents became quite good at optimisation as well, so the last couple of months I have been squeezing out performance. I think this was quite successful, for in memory tasks and up to 8 cores Ibex turned out to be one of the speedier options. I have an overview[1] but I didn’t want to lead with it because these are homegrown, Ibex is particularly well adjusted to what I found interesting and added, and honest benchmarking isn’t easy and I don’t want to give an overly optimistic picture. I haven’t compared to numpy yet because I focus on tables, doing something interesting with matrices is in the pipeline and then I will compare against numpy as well. So to answer your question: Ibex is fast for many workloads but YMMV.
[1]: https://ibexlang.org/benchmarks.html
Why not a table with total data size, selection percentage and timing? Size per time? What is 2x supposed to mean
I don’t quite follow, would you like to see filter performance for various tables? I did those tests as well but for sharing I focus on 3rd party benchmark suites, those are harder to game.
2x faster => 50% runtime
If polars has a performance cliff in some configuration of a query, then I can put vanilla datafusion against it and say it is 50x faster. There is no point in comparing them like this to each other.
If you said it can filter through 20GB of data in a second on a single thread, then that is really good regardless except if the computer has 400GB of ram then it matters if it was cached beforehand etc. It is just not easy to do benchmarks.
For example: https://rocksdb.org/blog/2021/12/29/ribbon-filter.html
It is absurd that we are not even close to having this quality 6 years after these things were done and we even have tireless LLMs to use now. There is no excuse.
This kind of writing in the OP is not about knowledge or learning or technicality of something it is more like a tooth paste commercial on tv with some numbers on the side. AHH wait, those commercials also have the same numbers.
I invite you to have a look at the benchmarking page[1] where different benchmarking suites are measured at different core counts and sizes. Note that the PDS-H suite originates from Polars and trust me that I have ran on different configurations to sanity check these results.
[1]: https://ibexlang.org/benchmarks.html