mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
parent
95f54eeb40
commit
c1d99676c4
1421 changed files with 5556 additions and 2198 deletions
|
@ -90,13 +90,13 @@ const char kTinyLinuxExit[128] = {
|
|||
0x6a, 0x2a, 0x5f, 0x6a, 0x3c, 0x58, 0x0f, 0x05, // j*_j<X☼♣
|
||||
};
|
||||
|
||||
/* BENCH(spawn, bench) { */
|
||||
/* int fd; */
|
||||
/* if (IsLinux()) { */
|
||||
/* fd = open("/tmp/tiny64", O_CREAT | O_TRUNC | O_WRONLY, 0755); */
|
||||
/* write(fd, kTinyLinuxExit, 128); */
|
||||
/* close(fd); */
|
||||
/* EZBENCH2("spawn", donothing, BenchmarkProcessLifecycle()); */
|
||||
/* unlink("/tmp/tiny64"); */
|
||||
/* } */
|
||||
/* } */
|
||||
BENCH(spawn, bench) {
|
||||
int fd;
|
||||
if (IsLinux()) {
|
||||
fd = open("/tmp/tiny64", O_CREAT | O_TRUNC | O_WRONLY, 0755);
|
||||
write(fd, kTinyLinuxExit, 128);
|
||||
close(fd);
|
||||
EZBENCH2("spawn", donothing, BenchmarkProcessLifecycle());
|
||||
unlink("/tmp/tiny64");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue