Skip to content

Commit cbd8333

Browse files
committed
Rename workflow
1 parent abb2489 commit cbd8333

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Create a new release
1+
name: Release
22
on:
33
push:
44
tags: ['v*.*.*']

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF -DBUILD_BENCHMARKS=OFF -DB
3939
make
4040
```
4141

42-
Then, install the library system-wide:
42+
Then, to install the library system-wide:
4343

4444
```bash
45-
cd build
4645
sudo make install
4746
```
4847

benchmarks/benchmark_list.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,16 +207,17 @@ BENCHMARK(BM_StdListEmpty)->Range(1 << 10, 1 << 20);
207207
static void BM_ListInsert(benchmark::State &state) {
208208
dsc_list_t *list = list_create(sizeof(int));
209209
int value = 42;
210-
list_push_back(list, &value);
211-
list_node_t *pos = list_begin(list);
212-
210+
213211
for (auto _ : state) {
214-
benchmark::DoNotOptimize(list_insert(list, pos, &value));
215212
state.PauseTiming();
216-
list_erase(list, list_begin(list)->next); // Remove the inserted node
213+
list_clear(list); // Clear any previous nodes
214+
list_push_back(list, &value); // Add initial node
215+
list_node_t *pos = list_begin(list); // Get fresh position
217216
state.ResumeTiming();
217+
218+
benchmark::DoNotOptimize(list_insert(list, pos, &value));
218219
}
219-
220+
220221
list_destroy(list);
221222
}
222223
BENCHMARK(BM_ListInsert)->Range(1 << 10, 1 << 20);

0 commit comments

Comments
 (0)