A chainsaw ( or chain saw ) is a portable mechanical saw , powered by electricity , compression air , hydraulics power , or most commonly a two-stroke engine . A chainsaw ( or chain saw ) is a portable mechanical saw , powered by electricity , compressed air , hydraulic power , or most commonly a two-stroke engine .