Skip to content

Files

Latest commit

author
Jess Morecroft
Jan 12, 2021
7b190b2 · Jan 12, 2021

History

History
This branch is 89 commits behind GaryHughes/Exchange:main.

part_2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 14, 2020
Jun 4, 2020
Nov 11, 2020
Jun 17, 2020
Nov 11, 2020
Jun 4, 2020
Jun 4, 2020
Jun 6, 2020
Jun 4, 2020
Jun 4, 2020
Jun 4, 2020
Jan 12, 2021
Jun 4, 2020

Exchange

Part 2

Benchmark your program against the supplied file orders-100K.txt, how long does it take to run?

  • Record the conditions under which you run your tests

    • Hardware
      • CPU
      • Memory
      • HDD/SSD
    • Operating System
    • Language/Compiler version and any optimisations you've applied.
    • Ensure there is no significant load on the system from other processes
  • Run this test multiple times and record the min, max and average.

      $ time cat orders_100K.txt | ./Exchange > trades.txt
      real	1m14.544s
      user	1m14.524s
      sys	0m0.012s
    
  • How much faster can you make it?

  • What did you change and why?