The length of your set(s) is dependent on whether:
your performance requires a certain length (i.e. theatre, comedy, performing the entire album beginning to end for an album release)
it’s a seated or a standing show
there’s an intermission
there’s a cut-off time that show has to end
there is another act sharing the bill
your audience is older or younger (some children don’t have much of an attention span!)
Work with the Host to discuss a plan - they will know their audience best and what works for set length in their space. A general rule of thumb is between 30-45 minutes, and saving something for the big finale if there’s an encore. But you also want to prepare for anything in the moment, and use your judgement during the set - for instance, does the audience seem antsy on your 7th song but you still have 4 more on your set list? If that’s the case, maybe cut off a couple of songs and finish on a high note.
If you are opening for another act, you may wish to keep your set on the shorter side. Discuss with the other Artist how long their set is and adjust accordingly. If there is more than one Artist, having an intermission is a great way for the audience to take a break, use the washroom, fill up their drink and chat with fellow guests. In the introduction to the show, the Host is encouraged to let the audience know about the intermission and so they can just focus on the performance when it’s happening.
If you’re the only Artist of the night, you have the option of doing two shorter sets with an intermission. Ask the Host what their preference is.
The more performances you do the more you will get used to reading the room and fine tuning your set length for each show.