• towerful@programming.dev
    link
    fedilink
    arrow-up
    14
    ·
    5 days ago

    Usama Arif found that with the three patches to just probe BMI2 CPU support only once, it yield a 71% reduction in decompression time and a 18% reduction in compression time for a crypto_acomp benchmark.

    Wow

    • SteveTech@aussie.zone
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      4 days ago

      It’s only slightly faster. cpuid is a serialising instruction, which means all the instructions before it have to complete, removing any gains from pipelining and out of order execution. However for a VM this also triggers a VM exit, where the hypervisor takes over to modify the values for the guest.