Retoor software development Projects Research SearchXNG
Register Sign In

20 lines
365 B
C
Raw Normal View History

feat: add backup files for rlib core modules including arena, nsock, and autocomplete Introduces initial backup snapshots of core rlib components: arena allocator with construct/new/alloc/free/reset API, nsock network socket wrapper with select-based event loop, autocomplete string list implementation, argument parser utilities, and main dispatcher for httpd/rmerge/rcov/rcase tools. Includes MIT license header and rlib.h umbrella include with 30+ submodule headers.
2025-03-20 04:16:06 +01:00
#include "rlib.h"
void dummy_function() {
for (long i = 0; i < 100000; i++) {
long a = i * 2;
}
}
int main() {
rbench_t *r = rbench_new();
r->add_function(r, "function", "dummy_function", dummy_function);
r->execute(r, 10000);
rbench_free(r);
for (int i = 0; i < 10000; i++) {
// rprintr("\\l\\T message\n");
}
}
Reference in New Issue Copy Permalink
2ffc9b82ed
rlib/.backup.1.r.c
Response time: 56ms
Mail Licenses API