This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
I'm wanting to benchmark (different compiles of) NASM, assembling x64 assembly, for which I need reasonable amounts of assembly code, which I don't have (yet...). I searched the wiki's project list, and the only x64 source I managed to access was BareMetal OS's, which assembles in under a second, which is no good for benchmarking.
Does anyone have/could point me to some code I could use? It doesn't even have to do anything just take at least 10 seconds to assemble, and contain a reasonable variety of instructions (hence copy+paste not great)...
Why do you need to benchmark NASM when clearly there is so little 64 bit x86 assembly out there that you can't find enough of it to test with, and therefore will likely never have enough of it for the speed of NASM to matter?
Just interest really. I've now written a program that generates random assembly code to do the benchmarks with, and to get long enough assembly times I needed to get it to generate a million lines of code - so you are quite right, speed is never going to be an issue!
You could possibly get a 64-bit application and disassemble it with ndisasm then reassemble it and see how long it takes, you could do it with quite large applications but it won't have to deal with macros so will probably be faster compiling than if it were to have macros and things in it but I think benchmarking NASM assemble times seems like a bit of a hard task really.
It's also possible to generate a few source files with a perl script or something like that. I take it it's not necessary to assemble a program that has to run?