MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / gigabytes_per_second

Function gigabytes_per_second

tests/test-quantize-perf.cpp:70–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70static float gigabytes_per_second(size_t bytes, int64_t usecs) {
71 return bytes / (float) usecs * 1000000 / (1024*1024*1024);
72}
73
74static void * align_with_offset(void * ptr, int offset) {
75 size_t dummy_size = MAX_ALIGNMENT * 4;

Callers 1

benchmark_functionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected