Except the small detail that C's POSIX support is much wider than Rust's tier 1 platforms.
I am fairly certain that without profiling and defining a test configuration for a set of specific C++ compilers / standard C++ library I won't assert anything about std::regex performance with 4 MB of RAM.
libc is barely a standard library, it's almost nothing.