Source x64 assembly required for benchmarking NASM

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
Post Reply
madanra
Member
Member
Posts: 149
Joined: Mon Sep 07, 2009 12:01 pm

Source x64 assembly required for benchmarking NASM

Post by madanra »

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 :P just take at least 10 seconds to assemble, and contain a reasonable variety of instructions (hence copy+paste not great)...
User avatar
NickJohnson
Member
Member
Posts: 1249
Joined: Tue Mar 24, 2009 8:11 pm
Location: Sunnyvale, California

Re: Source x64 assembly required for benchmarking NASM

Post by NickJohnson »

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?
madanra
Member
Member
Posts: 149
Joined: Mon Sep 07, 2009 12:01 pm

Re: Source x64 assembly required for benchmarking NASM

Post by madanra »

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!
Ferrarius
Member
Member
Posts: 69
Joined: Sun Oct 28, 2007 4:10 pm

Re: Source x64 assembly required for benchmarking NASM

Post by Ferrarius »

Seems to be a rather pointless excercise to me, but uh.
So does writing an OS to most people. Was there a specific point you wanted to make?

Unfortunately I don't write x64 assembly so I can't help you.
Modular Interface Kernel With a lot of bugs ;)
User avatar
Code0x58
Posts: 10
Joined: Tue Jul 27, 2010 2:13 pm
Location: Surrey, England

Re: Source x64 assembly required for benchmarking NASM

Post by Code0x58 »

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.
Ferrarius
Member
Member
Posts: 69
Joined: Sun Oct 28, 2007 4:10 pm

Re: Source x64 assembly required for benchmarking NASM

Post by Ferrarius »

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?
Modular Interface Kernel With a lot of bugs ;)
madanra
Member
Member
Posts: 149
Joined: Mon Sep 07, 2009 12:01 pm

Re: Source x64 assembly required for benchmarking NASM

Post by madanra »

No - it just has to be lots of (valid) assembly. (Hence I did write a program that generated assembly code, and benchmarked against that)
Post Reply