Skip to content

Commit 078da9b

Browse files
committed
chore: revert ibis-bench because we do not have the tool installed
1 parent df573bf commit 078da9b

File tree

1 file changed

+29
-34
lines changed

1 file changed

+29
-34
lines changed

docs/posts/ibis-bench/index.qmd

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -278,56 +278,51 @@ type, number of cores, and memory in gigabytes:
278278
```{python}
279279
#| code-fold: true
280280
#| code-summary: "Show code to get instance details"
281-
cpu_type_cases = ibis.cases(
282-
(
281+
cpu_type_cases = (
282+
ibis.case()
283+
.when(
283284
ibis._["instance_type"].startswith("n2d"),
284285
"AMD EPYC",
285-
),
286-
(
286+
)
287+
.when(
287288
ibis._["instance_type"].startswith("n2"),
288289
"Intel Cascade and Ice Lake",
289-
),
290-
(
290+
)
291+
.when(
291292
ibis._["instance_type"].startswith("c3"),
292293
"Intel Sapphire Rapids",
293-
),
294-
(
294+
)
295+
.when(
295296
ibis._["instance_type"] == "work laptop",
296297
"Apple M1 Max",
297-
),
298-
(
298+
)
299+
.when(
299300
ibis._["instance_type"] == "personal laptop",
300301
"Apple M2 Max",
301-
),
302-
else_="unknown",
302+
)
303+
.else_("unknown")
304+
.end()
303305
)
304-
305-
cpu_num_cases = ibis.cases(
306-
(
306+
cpu_num_cases = (
307+
ibis.case()
308+
.when(
307309
ibis._["instance_type"].contains("-"),
308310
ibis._["instance_type"].split("-")[-1].cast("int"),
309-
),
310-
(
311-
ibis._["instance_type"].contains("laptop"),
312-
12,
313-
),
314-
else_=0,
311+
)
312+
.when(ibis._["instance_type"].contains("laptop"), 12)
313+
.else_(0)
314+
.end()
315315
)
316-
317-
memory_gb_cases = ibis.cases(
318-
(
316+
memory_gb_cases = (
317+
ibis.case()
318+
.when(
319319
ibis._["instance_type"].contains("-"),
320320
ibis._["instance_type"].split("-")[-1].cast("int") * 4,
321-
),
322-
(
323-
ibis._["instance_type"] == "work laptop",
324-
32,
325-
),
326-
(
327-
ibis._["instance_type"] == "personal laptop",
328-
96,
329-
),
330-
else_=0,
321+
)
322+
.when(ibis._["instance_type"] == "work laptop", 32)
323+
.when(ibis._["instance_type"] == "personal laptop", 96)
324+
.else_(0)
325+
.end()
331326
)
332327
333328
instance_details = (

0 commit comments

Comments
 (0)