summaryrefslogtreecommitdiff
path: root/tests/benchmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmark.c')
-rw-r--r--tests/benchmark.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/benchmark.c b/tests/benchmark.c
index eecccc5..8cea45c 100644
--- a/tests/benchmark.c
+++ b/tests/benchmark.c
@@ -59,7 +59,7 @@ static void bench_surface_lookup(void) {
if (d) {
for (int i = 0; i < num_surfaces; i++) {
- struct yasl_surface_spec sspec = {
+ struct yasl_window_spec sspec = {
.title = "Benchmark",
.size = { .x = 320, .y = 240 },
};
@@ -99,7 +99,7 @@ static void bench_output_follow(void) {
struct yasl_display *d = yasl_display_open(NULL, &spec);
struct yasl_surface *s = NULL;
if (d) {
- struct yasl_surface_spec sspec = {
+ struct yasl_window_spec sspec = {
.title = "Benchmark",
.size = { .x = 320, .y = 240 },
};
@@ -209,7 +209,7 @@ static void bench_timers(void) {
static void bench_window_cold_create(void) {
const int iters = 200;
struct yasl_display_spec dspec = { .app_id = "org.yasl.bench.cold" };
- struct yasl_surface_spec sspec = {
+ struct yasl_window_spec sspec = {
.title = "Benchmark Cold",
.size = { .x = 320, .y = 240 },
};
@@ -252,7 +252,7 @@ static void bench_window_warm_create(void) {
return;
}
- struct yasl_surface_spec sspec = {
+ struct yasl_window_spec sspec = {
.title = "Benchmark Warm",
.size = { .x = 320, .y = 240 },
};
@@ -285,7 +285,7 @@ static void bench_window_shutdown_single(void) {
return;
}
- struct yasl_surface_spec sspec = {
+ struct yasl_window_spec sspec = {
.title = "Benchmark Shutdown Single",
.size = { .x = 320, .y = 240 },
};
@@ -321,7 +321,7 @@ static void bench_window_shutdown_all(void) {
return;
}
- struct yasl_surface_spec sspec = {
+ struct yasl_window_spec sspec = {
.title = "Benchmark Bulk Window",
.size = { .x = 320, .y = 240 },
};
@@ -367,7 +367,7 @@ static void bench_window_title_update(void) {
return;
}
- struct yasl_surface_spec sspec = {
+ struct yasl_window_spec sspec = {
.title = "Initial Title",
.size = { .x = 320, .y = 240 },
};
@@ -422,7 +422,7 @@ static void bench_window_resize(void) {
uint64_t t0 = get_time_ns();
int count = 0;
for (int i = 0; i < iters; i++) {
- struct yasl_surface_spec sspec = {
+ struct yasl_window_spec sspec = {
.title = "Resize Bench",
.size = sizes[i % num_sizes],
};