4 ms·
The code for the C implementation is incredibly verbose compared to the code for the JS implementation. JS: http://benchmarksgame.alioth.debian.org/u64/program
by NathanKP 13y ago
The code for the C implementation is incredibly verbose compared to the code for the JS implementation.
JS: http://benchmarksgame.alioth.debian.org/u64/program.php?test=regexdna&lang=v8&id=2 http://benchmarksgame.alioth.debian.org/u64/program.php?test...
C: http://benchmarksgame.alioth.debian.org/u64/program.php?test=regexdna&lang=gcc&id=1 http://benchmarksgame.alioth.debian.org/u64/program.php?test...
- unwind 13y agoThat's just ... absurd, in comparison at least. It uses TCL and glib?! I'll go out on a limb here and claim that this C program is not the shortest possible equivalent to the JS version.
- igouy 13y agoThat isn't the only C program shown :-) http://benchmarksgame.alioth.debian.org/u64/program.php?test=regexdna&lang=gcc&id=4 http://benchmarksgame.alioth.debian.org/u64/program.php?test... http://benchmarksgame.alioth.debian.org/u64/program.php?test=regexdna&lang=gcc&id=2 http://benchmarksgame.alioth.debian.org/u64/program.php?test...