Skip to content

Performances Regression between older versions (0.41) and latest (0.51) #27

@ulysse31

Description

@ulysse31

Hello,

There is a clear performance regression on the latest version (0.51, available on debian trixie) and older ones (such as 0.41):
Under the same host, with same perl version (debian trixie) :

root@none /tmp # time ./ipcalc.0.41 10.42.42.0/24
Address: 10.42.42.0 00001010.00101010.00101010. 00000000
Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000
Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111
=>
Network: 10.42.42.0/24 00001010.00101010.00101010. 00000000
HostMin: 10.42.42.1 00001010.00101010.00101010. 00000001
HostMax: 10.42.42.254 00001010.00101010.00101010. 11111110
Broadcast: 10.42.42.255 00001010.00101010.00101010. 11111111
Hosts/Net: 254 Class A, Private Internet

./ipcalc.0.41 10.42.42.0/24 0.00s user 0.00s system 95% cpu 0.009 total
root@none /tmp # time ./ipcalc.0.51 10.42.42.0/24
Address: 10.42.42.0 00001010.00101010.00101010. 00000000
Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000
Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111
=>
Network: 10.42.42.0/24 00001010.00101010.00101010. 00000000
HostMin: 10.42.42.1 00001010.00101010.00101010. 00000001
HostMax: 10.42.42.254 00001010.00101010.00101010. 11111110
Broadcast: 10.42.42.255 00001010.00101010.00101010. 11111111
Hosts/Net: 254 Class A, Private Internet

./ipcalc.0.51 10.42.42.0/24 0.13s user 0.01s system 99% cpu 0.141 total
root@none /tmp #

This may seem subtle to many, but if ipcalc is used as a subroutine on a script ... it is quite impacting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions